From 29ee1f98e7e08e01a34231ab3992e7786383f14f Mon Sep 17 00:00:00 2001 From: tdback Date: Tue, 12 Nov 2024 19:28:26 -0500 Subject: [PATCH] by default ensure ssh is enabled and password authentication is disabled --- modules/ssh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix index 77c0015..ec8f188 100644 --- a/modules/ssh/default.nix +++ b/modules/ssh/default.nix @@ -4,14 +4,14 @@ let in { services.openssh = { - enable = true; - startWhenNeeded = true; + enable = lib.mkDefault true; ports = ports; openFirewall = true; + startWhenNeeded = true; settings = { AllowUsers = [ "tdback" ]; PermitRootLogin = "no"; - PasswordAuthentication = false; + PasswordAuthentication = lib.mkDefault false; }; }; }