nixos/system/core/ssh.nix
2025-03-12 15:43:41 +01:00

11 lines
214 B
Nix

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