nixos-configuration/modules/nix.nix
2024-05-15 22:23:40 +00:00

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
];
}