tv: use nix.settings
This commit is contained in:
parent
dfd8f1f93c
commit
6a82f29433
@ -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 = ''
|
||||
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;
|
||||
|
@ -28,8 +28,8 @@ in
|
||||
}
|
||||
|
||||
{
|
||||
nix.buildCores = 2;
|
||||
nix.maxJobs = 2;
|
||||
nix.settings.cores = 2;
|
||||
nix.settings.max-jobs = 2;
|
||||
}
|
||||
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "21.11" then {
|
||||
nix.daemonCPUSchedPolicy = "batch";
|
||||
|
Loading…
Reference in New Issue
Block a user