nixos-configuration/modules/nix.nix
2022-10-11 21:58:19 +00:00

38 lines
682 B
Nix

{ pkgs, inputs, system, ... }:
{
nix = {
trustedUsers = [ "@wheel" ];
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
daemonCPUSchedPolicy = "idle";
daemonIOSchedClass = "idle";
daemonIOSchedPriority = 7;
autoOptimiseStore = true;
nixPath = [
"nixpkgs=${inputs.nixpkgs}"
];
allowedUsers = [ "@wheel" ];
};
nixpkgs.overlays = with inputs; [
self.overlay
(final: prev: {
master = import inputs.nixpkgsMaster {
inherit system;
config = prev.config;
};
})
];
environment.systemPackages = with pkgs; [
cached-nix-shell
];
}