kein admin user anlegen
This commit is contained in:
parent
c5eb1353af
commit
df593b467e
1 changed files with 7 additions and 6 deletions
13
default.nix
13
default.nix
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue