nix/user/Root.nix

13 lines
252 B
Nix
Raw Normal View History

2024-06-27 16:34:58 +03:00
{ secret, ... }: {
imports = [ ./common ];
2024-04-14 23:37:48 +03:00
2024-06-27 16:34:58 +03:00
user.common.users = [{ name = "root"; homeDir = "/root"; }];
users.users.root.hashedPassword = secret.hashedPassword;
2024-03-11 23:26:54 +03:00
security.sudo = {
enable = false;
extraConfig = ''
Defaults rootpw
'';
};
}