infra/config/network.nix

16 lines
294 B
Nix
Raw Normal View History

2023-05-06 06:49:46 +02:00
{
networking.firewall.enable = true;
services = {
fail2ban.enable = true;
openssh = {
enable = true;
ports = [1322];
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
StreamLocalBindUnlink = "yes";
};
2023-05-06 06:49:46 +02:00
};
};
}