mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
networking ssh
This commit is contained in:
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";
|
||||
|
||||
@@ -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" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user