nix/user/Root.nix

17 lines
309 B
Nix
Raw Normal View History

2024-04-14 23:37:48 +03:00
{ const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [
2024-04-14 23:37:48 +03:00
(import ./common (args // {
username = "root";
homeDir = "/root";
}))
];
2024-04-14 23:37:48 +03:00
users.users.root.hashedPassword = secret.hashedPassword;
2024-03-11 23:26:54 +03:00
security.sudo = {
enable = false;
extraConfig = ''
Defaults rootpw
'';
};
}