ssh service and npins update

This commit is contained in:
boyreau 2026-08-30 18:18:59 +02:00
commit 70839731e1
4 changed files with 23 additions and 20 deletions

12
modules/ssh.nix Normal file
View file

@ -0,0 +1,12 @@
{
services.openssh.enable = true;
services.openssh.ports = [ 22 ];
services.openssh.settings.PermitRootLogin = "yes";
services.openssh.settings.AllowUsers = [ "root" ];
# Firewall
services.openssh.openFirewall = false;
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [
22
];
}