nix/user/Root.nix

24 lines
315 B
Nix

{ const
, util
, style
, pkgs
, config
, key
, secret
, ... } @args: {
imports = [
(import ./common (args // {
username = "root";
homeDir = "/root";
}))
];
users.users.root.hashedPassword = secret.hashedPassword;
security.sudo = {
enable = false;
extraConfig = ''
Defaults rootpw
'';
};
}