diff --git a/sd-image.nix b/sd-image.nix index 3b0e7afe..df9cb1cf 100644 --- a/sd-image.nix +++ b/sd-image.nix @@ -10,11 +10,6 @@ in { ]; - # Temporarily allow ssh access for imaging - networking.firewall.allowedTCPPorts = [ 22 ]; - - # User for ssh - # Define a user account. users.users.albert = { isNormalUser = true; description = "Albert J. Copeland"; @@ -22,4 +17,12 @@ in { # mkpasswd -m sha-512 hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6"; }; + + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = true; + }; + }; } \ No newline at end of file