nixos/modules/ssh.nix

11 lines
258 B
Nix
Raw Permalink Normal View History

2026-08-30 18:18:59 +02:00
{
services.openssh.enable = true;
services.openssh.ports = [ 22 ];
2026-09-26 21:32:02 +00:00
services.openssh.settings.PermitRootLogin = "no";
2026-08-30 18:18:59 +02:00
# Firewall
services.openssh.openFirewall = false;
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
22
];
}