diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-12-01 08:46:14 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-12-01 08:46:14 -0500 |
commit | b5efaa433c1c6f53413b0443a18c1aea95bd2215 (patch) | |
tree | a33278d68cb11db5218d5f77b2dd4843f5050caa /modules/common.nix | |
parent | 0a15752e6d5d0ab291afecf6cb2baf75c045167d (diff) |
Update nixos
Diffstat (limited to 'modules/common.nix')
-rw-r--r-- | modules/common.nix | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/modules/common.nix b/modules/common.nix index 1c9af79..241ab77 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -89,23 +89,24 @@ }; nix = rec { - useSandbox = lib.mkDefault true; - maxJobs = lib.mkOverride 110 16; - buildCores = lib.mkDefault 0; # auto configure + settings = { + sandbox = lib.mkDefault true; + cores = lib.mkDefault 0; # auto configure + substituters = [ + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + auto-optimise-store = true; + }; gc.automatic = lib.mkDefault true; - binaryCaches = [ - "https://nix-community.cachix.org" - ]; - binaryCachePublicKeys = [ - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - ]; daemonCPUSchedPolicy = "idle"; daemonIOSchedPriority = 10; package = pkgs.nixFlakes; extraOptions = '' experimental-features = nix-command flakes ''; - autoOptimiseStore = true; }; boot.cleanTmpDir = true; |