From 23ecd98c8352165522f353ca4ea79feb46b61390 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 16 Sep 2023 18:03:34 +0900 Subject: [PATCH] test --- sd-image.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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