nixos/config/nix.nix
2019-08-28 15:56:19 +02:00

22 lines
494 B
Nix

{ config, lib, ... }:
{
nix = {
maxJobs = 4;
buildCores = 1;
autoOptimiseStore = true;
useSandbox = true;
extraOptions = ''
build-timeout = 86400 # 24 hours
'';
binaryCachePublicKeys = [ (lib.fileContents "${config.machine.secretPath}/hydra_cache.pub") ];
trustedBinaryCaches = [
"https://cache.nixos.org"
"https://cache.ophanim.de"
];
binaryCaches = [
"https://cache.nixos.org"
"https://cache.ophanim.de"
];
};
}