rock5b as remote builder

This commit is contained in:
Andrea Ciceri 2023-04-13 18:10:52 +02:00
parent fcea81b962
commit 545d968d20
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 19 additions and 1 deletions

View file

@ -38,5 +38,18 @@
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
buildMachines = [
{
hostName = "rock5b.fleet";
system = "aarch64-linux";
maxJobs = 6;
speedFactor = 2;
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
mandatoryFeatures = [];
sshKey = "/etc/ssh/ssh_host_ed25519_key";
}
];
distributedBuilds = true;
}; };
} }

View file

@ -1,10 +1,15 @@
{fleetFlake, ...}: { {fleetFlake, ...}: {
services = { services = {
sshd.enable = true; sshd.enable = true;
fail2ban = { fail2ban = {
enable = true; enable = true;
maxretry = 10; maxretry = 10;
ignoreIP = [
"88.198.49.106"
"10.100.0.1/24"
];
}; };
}; };
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues (import "${fleetFlake}/lib").keys.users; users.users.root.openssh.authorizedKeys.keys = builtins.attrValues (with (import "${fleetFlake}/lib"); keys.users // keys.hosts);
} }