test
This commit is contained in:
parent
89293a5e36
commit
23ecd98c83
1 changed files with 8 additions and 5 deletions
13
sd-image.nix
13
sd-image.nix
|
@ -10,11 +10,6 @@ in {
|
||||||
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
<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 = {
|
users.users.albert = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Albert J. Copeland";
|
description = "Albert J. Copeland";
|
||||||
|
@ -22,4 +17,12 @@ in {
|
||||||
# mkpasswd -m sha-512
|
# mkpasswd -m sha-512
|
||||||
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";
|
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue