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