Files
copnix/modules/nixos/services/service-ssh.ulu.nix
T
2026-09-04 00:38:34 +03:00

22 lines
501 B
Nix

{ ... }:
{
flake.nixosModules.service-ssh =
{ ... }:
{
services.tailscale.enable = true;
services.openssh = {
enable = true;
openFirewall = false;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ 22 ];
networking.firewall.trustedInterfaces = [ "tailscale0" ];
};
}