This commit is contained in:
iFargle 2023-09-16 18:03:34 +09:00
parent 89293a5e36
commit 23ecd98c83

View file

@ -10,11 +10,6 @@ in {
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
];
# 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;
};
};
}