tv: use nix.settings

This commit is contained in:
tv 2022-12-05 16:54:54 +01:00
parent dfd8f1f93c
commit 6a82f29433
2 changed files with 7 additions and 10 deletions

View File

@ -46,18 +46,15 @@ with import <stockholm/lib>;
} }
{ {
# TODO check if both are required:
nix.sandboxPaths = [ "/etc/protocols" pkgs.iana-etc.outPath ];
nix.requireSignedBinaryCaches = true;
nix.binaryCaches = ["https://cache.nixos.org"];
nix.extraOptions = '' nix.extraOptions = ''
auto-optimise-store = true auto-optimise-store = true
''; '';
nix.useSandbox = true; # TODO check if both are required:
nix.settings.extra-sandbox-paths = [
"/etc/protocols"
pkgs.iana-etc.outPath
];
} }
{ {
nixpkgs.config.allowUnfree = false; nixpkgs.config.allowUnfree = false;

View File

@ -28,8 +28,8 @@ in
} }
{ {
nix.buildCores = 2; nix.settings.cores = 2;
nix.maxJobs = 2; nix.settings.max-jobs = 2;
} }
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then { (if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then {
nix.daemonCPUSchedPolicy = "batch"; nix.daemonCPUSchedPolicy = "batch";