networking ssh

This commit is contained in:
elwrcl committed 2026-09-04 00:38:34 +03:00
1 parent 26e1ad4cb1
commit 4541b9d7ca
2 files changed
+13 -3

No files matched your search

@@ -6,8 +6,6 @@
inherit (lib.modules) mkDefault mkForce;
in
{
networking.hostName = "copland";
networking.networkmanager = {
enable = true;
dns = mkForce "none";
+13 -1
View File
@@ -3,7 +3,19 @@
flake.nixosModules.service-ssh =
{ ... }:
{
services.openssh.enable = true;
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" ];
};
}