password-auth for the example (don't do this)

This commit is contained in:
mehbark 2025-10-09 13:55:03 -04:00
parent 1442903041
commit 7e2399ee63
Signed by: mbk
GPG key ID: E333EC1335FFCCDB

View file

@ -6,11 +6,9 @@
system.stateVersion = "24.11"; system.stateVersion = "24.11";
security.sudo.wheelNeedsPassword = false;
services.openssh = { services.openssh = {
enable = true; enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = true;
}; };
users.users.example = { users.users.example = {
@ -18,8 +16,5 @@
description = "example"; description = "example";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
initialPassword = "hunter2"; initialPassword = "hunter2";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICyTxPV3S7ms0AJ0tduI3aJP3o2TJCnkirWKaj5i1+DW"
];
}; };
} }