2019-02-26 13:44:40 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
nix = {
|
|
|
|
maxJobs = 4;
|
|
|
|
buildCores = 1;
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
useSandbox = true;
|
|
|
|
extraOptions = ''
|
|
|
|
build-timeout = 86400 # 24 hours
|
|
|
|
'';
|
2019-03-04 10:35:50 +01:00
|
|
|
sshServe.enable = true;
|
|
|
|
sshServe.keys = ( if config.networking.hostName == "Ophanim" then [ (builtins.replaceStrings ["\n"] [""] (builtins.readFile /secret/nix-ssh.pub)) ] else []);
|
|
|
|
binaryCachePublicKeys = [ (builtins.replaceStrings ["\n"] [""] (builtins.readFile /secret/hydra_cache.pub)) ];
|
2019-02-26 13:44:40 +01:00
|
|
|
trustedBinaryCaches = [
|
2019-03-04 10:35:50 +01:00
|
|
|
"https://cache.nixos.org"
|
|
|
|
"https://cache.ophanim.de"
|
2019-02-26 13:44:40 +01:00
|
|
|
];
|
|
|
|
binaryCaches = [
|
2019-03-04 10:35:50 +01:00
|
|
|
"https://cache.nixos.org"
|
|
|
|
"https://cache.ophanim.de"
|
2019-02-26 13:44:40 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|