summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-12-05 16:54:54 +0100
committertv <tv@krebsco.de>2022-12-05 17:43:11 +0100
commit06773bdd5890befc215a60d069cee6272b4d49a3 (patch)
treed0a6a03430b9874458c3e2e54effb979a8fdb667 /tv/2configs
parente03d29d7a805f13ed321fd5f79a06a0293ff3237 (diff)
tv: use nix.settings
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/default.nix13
-rw-r--r--tv/2configs/hw/x220.nix4
2 files changed, 7 insertions, 10 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index 41dab52..c904702 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -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;
diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix
index 8c68cde..25e2eff 100644
--- a/tv/2configs/hw/x220.nix
+++ b/tv/2configs/hw/x220.nix
@@ -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";