Files
nix-config/hosts/modules/ssh.nix
2024-11-05 09:07:52 +01:00

15 lines
233 B
Nix

{
networking.firewall.allowedTCPPorts = [ 22 ];
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = true;
UseDns = true;
};
};
}