Hydra kind of works now. Switched to nixos nextcloud module. Renamed some stuff and added kdeconnect firewall rules. Added gvfs modules environmen variable.

This commit is contained in:
Kevin Baensch 2019-03-04 10:35:50 +01:00
parent 764f126524
commit 2efae4f888
13 changed files with 144 additions and 244 deletions

View file

@ -11,6 +11,8 @@ in {
allowPing = cfg.conf.networking.firewall.allowPing;
allowedUDPPorts = cfg.conf.networking.firewall.allowedUDPPorts;
allowedTCPPorts = cfg.conf.networking.firewall.allowedTCPPorts;
allowedUDPPortRanges = cfg.conf.networking.firewall.allowedUDPPortRanges;
allowedTCPPortRanges = cfg.conf.networking.firewall.allowedTCPPortRanges;
};
};
}

View file

@ -5,17 +5,20 @@
maxJobs = 4;
buildCores = 1;
autoOptimiseStore = true;
sshServe.enable = false;
#sshServe.keys = [];
useSandbox = true;
extraOptions = ''
build-timeout = 86400 # 24 hours
'';
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)) ];
trustedBinaryCaches = [
"http://cache.nixos.org"
"https://cache.nixos.org"
"https://cache.ophanim.de"
];
binaryCaches = [
"http://cache.nixos.org"
"https://cache.nixos.org"
"https://cache.ophanim.de"
];
};
}