nyx/modules/nixos/networking/ssh.nix
2025-01-27 14:24:45 +02:00

15 lines
285 B
Nix

{...}: {
services.openssh = {
enable = true;
startWhenNeeded = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
ClientAliveCountMax = 5;
ClientAliveInterval = 60;
};
openFirewall = true;
ports = [22];
};
}