nixos/config/nix.nix

23 lines
494 B
Nix
Raw Normal View History

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