This commit is contained in:
Andrea Ciceri 2023-04-02 16:16:52 +02:00
parent 477bef81a5
commit 1c6e94ad0e
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -1,4 +1,10 @@
{fleetFlake, ...}: {
services.sshd.enable = true;
services = {
sshd.enable = true;
fail2ban = {
enable = true;
maxretry = 10;
};
};
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues (import "${fleetFlake}/lib").keys.users;
}