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

@ -1,10 +1,15 @@
{fleetFlake, ...}: {
services = {
sshd.enable = true;
fail2ban = {
enable = true;
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);
}