Files
tuxcord.nix/nixos/openssh.nix
T
ErrorNoInternet 5942c97c1c
Check / Nix flake (push) Failing after 8s
Lint / Nix expressions (push) Failing after 11s
nixos: separate openssh firewall port
2026-05-03 11:29:25 -04:00

16 lines
271 B
Nix

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