19 lines
261 B
Nix
19 lines
261 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
services = {
|
|
openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
fail2ban = {
|
|
enable = true;
|
|
bantime = "1h";
|
|
};
|
|
};
|
|
}
|