38 lines
736 B
Nix
38 lines
736 B
Nix
{ config, lib, pkgs, inputs, system, ... }:
|
|
|
|
{
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
|
|
daemonCPUSchedPolicy = "idle";
|
|
daemonIOSchedClass = "idle";
|
|
daemonIOSchedPriority = 7;
|
|
|
|
nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
];
|
|
|
|
settings = {
|
|
trusted-users = [ "@wheel" ];
|
|
auto-optimise-store = true;
|
|
allowed-users = [ "@wheel" ];
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = with inputs; [
|
|
self.overlays.default
|
|
(final: prev: {
|
|
master = import inputs.nixpkgsMaster {
|
|
inherit system;
|
|
config = prev.config;
|
|
};
|
|
})
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
cached-nix-shell
|
|
];
|
|
}
|