mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Nix] Add self-hosted nixos cache
This commit is contained in:
parent
c8552eb989
commit
83c6db86f7
1 changed files with 3 additions and 0 deletions
3
nix.nix
3
nix.nix
|
|
@ -34,6 +34,9 @@ in
|
||||||
stalled-download-timeout = 20;
|
stalled-download-timeout = 20;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.binaryCaches = mkBefore [ "https://nix-cache.lesviallon.fr" ];
|
||||||
|
nix.binaryCachePublicKeys = mkBefore [ "nix-cache.lesviallon.fr-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
||||||
|
|
||||||
nix.buildCores = mkIf (generalCfg.cores != null) generalCfg.cores;
|
nix.buildCores = mkIf (generalCfg.cores != null) generalCfg.cores;
|
||||||
nix.maxJobs = mkIf (generalCfg.cores != null) (math.log2 generalCfg.cores);
|
nix.maxJobs = mkIf (generalCfg.cores != null) (math.log2 generalCfg.cores);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue