hosts/hydra-*: enable distributed builds
This commit is contained in:
parent
701f8bd41f
commit
fa025a7a65
@ -21,8 +21,16 @@
|
||||
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" ];
|
||||
|
||||
# Allow Hydra to fetch remote URLs in restricted mode
|
||||
nix.settings.allowed-uris = "http:// https://";
|
||||
nix = {
|
||||
settings.allowed-uris = "http:// https://";
|
||||
distributedBuilds = true;
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "hydra-2.net.clerie.de";
|
||||
system = "x86_64-linux";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
|
@ -24,6 +24,12 @@
|
||||
# Allow Hydra to fetch remote URLs in restricted mode
|
||||
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 = {
|
||||
enable = true;
|
||||
id = "211";
|
||||
|
Loading…
Reference in New Issue
Block a user