summaryrefslogtreecommitdiff
path: root/modules/common.nix
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-01 08:46:14 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-01 08:46:14 -0500
commitb5efaa433c1c6f53413b0443a18c1aea95bd2215 (patch)
treea33278d68cb11db5218d5f77b2dd4843f5050caa /modules/common.nix
parent0a15752e6d5d0ab291afecf6cb2baf75c045167d (diff)
Update nixos
Diffstat (limited to 'modules/common.nix')
-rw-r--r--modules/common.nix21
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;