nixos-configuration/modules/nix.nix
jalr 1dab9bb303 Set NIX_PATH
* set `NIX_PATH` correctly
* ensure that dynamic update of nixpkgs path works
2021-12-04 22:14:39 +00:00

38 lines
671 B
Nix

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