kein admin user anlegen

This commit is contained in:
goeranh 2026-02-28 02:34:05 +01:00
parent c5eb1353af
commit df593b467e
No known key found for this signature in database

View file

@ -38,7 +38,7 @@ in
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
trusted-users = [ "administration" ]; # trusted-users = [ "administration" ];
auto-optimise-store = true; auto-optimise-store = true;
}; };
optimise.automatic = true; optimise.automatic = true;
@ -60,11 +60,12 @@ in
}; };
users.users = { users.users = {
administration = { # erstmal nur mit root
isNormalUser = true; # administration = {
extraGroups = [ "wheel" ]; # Enable sudo for the user. # isNormalUser = true;
openssh.authorizedKeys.keys = keys; # extraGroups = [ "wheel" ]; # Enable sudo for the user.
}; # openssh.authorizedKeys.keys = keys;
# };
root = { root = {
openssh.authorizedKeys.keys = keys; openssh.authorizedKeys.keys = keys;
}; };