ssh + root password change

This commit is contained in:
Paul Zinselmeyer 2024-08-28 11:43:25 +02:00
parent 27bc941d29
commit 2be6ce2ef9
Signed by: pfzetto
GPG key ID: B471A1AF06C895FD

View file

@ -17,7 +17,10 @@
time.timeZone = "Europe/Berlin";
users.mutableUsers = false;
users.users.root.password = "start1234";
users.users.root = {
hashedPassword = "$y$j9T$0pAghPO9710DDgMEznC/I0$S2cMkfV2NpytDAk58oV75pT0G1Lnq/T3BAiO9gXeuOB";
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDbsWgnT1W25H5fDCekspaXzlIwvKh+rHygTId8xHotU" ];
};
users.users.stube = {
isNormalUser = true;
extraGroups = [ "networkmanager" ];
@ -84,5 +87,11 @@
security.polkit.enable = true;
services.openssh = {
enable = true;
openFirewall = true;
settings.PermitRootLogin = "prohibit-password";
};
system.stateVersion = "24.05";
}