Files
dev/modules/core/ssh.nix
2025-07-23 23:20:42 +02:00

18 lines
277 B
Nix

{
...
}:
{
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
AllowUsers = null;
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
}