password-auth for the example (don't do this)
This commit is contained in:
parent
1442903041
commit
7e2399ee63
1 changed files with 1 additions and 6 deletions
|
|
@ -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"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue