nixos-module/{,container/}defaults: update to nix.settings

This commit is contained in:
Astro 2023-01-18 17:14:52 +01:00
parent d134e1018c
commit 418444853c
2 changed files with 11 additions and 7 deletions

View File

@ -19,9 +19,11 @@
); );
nix = { nix = {
useSandbox = false; settings = {
maxJobs = lib.mkDefault 1; sandbox = false;
buildCores = lib.mkDefault 1; max-jobs = lib.mkDefault 4;
cores = lib.mkDefault 4;
};
}; };
systemd.services = systemd.services =

View File

@ -26,10 +26,12 @@
nixpkgs.flake = inputs.nixpkgs; nixpkgs.flake = inputs.nixpkgs;
}; };
binaryCachePublicKeys = [ settings = {
substituters = lib.mkBefore [ "https://hydra.hq.c3d2.de" ];
trusted-public-keys = [
"nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps=%" "nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps=%"
]; ];
binaryCaches = lib.mkBefore [ "https://hydra.hq.c3d2.de" ]; };
}; };
documentation = { documentation = {