1
0

hosts/hydra-*: enable distributed builds

This commit is contained in:
clerie 2022-10-15 16:04:40 +02:00
parent 701f8bd41f
commit fa025a7a65
2 changed files with 16 additions and 2 deletions

View File

@ -21,8 +21,16 @@
networking.defaultGateway = { address = "192.168.10.1"; interface = "ens19"; }; networking.defaultGateway = { address = "192.168.10.1"; interface = "ens19"; };
networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ]; networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
# Allow Hydra to fetch remote URLs in restricted mode nix = {
nix.settings.allowed-uris = "http:// https://"; settings.allowed-uris = "http:// https://";
distributedBuilds = true;
buildMachines = [
{
hostName = "hydra-2.net.clerie.de";
system = "x86_64-linux";
}
];
};
services.hydra = { services.hydra = {
enable = true; enable = true;

View File

@ -24,6 +24,12 @@
# Allow Hydra to fetch remote URLs in restricted mode # Allow Hydra to fetch remote URLs in restricted mode
nix.settings.allowed-uris = "http:// https://"; nix.settings.allowed-uris = "http:// https://";
services.openssh.permitRootLogin = "yes";
users.extraUsers.root.openssh.authorizedKeys.keys = [
''command="nix-store --serve --write" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMv8Lbca/CR4das3HJ2F/sQ9dA7kdGS1hSVTt5lX4diP root@hydra-1''
];
clerie.monitoring = { clerie.monitoring = {
enable = true; enable = true;
id = "211"; id = "211";