nixos-servers/system/root-user.nix

14 lines
422 B
Nix
Raw Normal View History

2024-03-07 22:14:44 +00:00
{ pkgs, config, ... }: {
programs.zsh.enable = true;
sops.secrets.root_password_hash = { };
sops.secrets.root_password_hash.neededForUsers = true;
users.users.root = {
shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets.root_password_hash.path;
2024-03-08 19:10:50 +00:00
openssh.authorizedKeys.keys = [
2024-03-07 22:14:44 +00:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAwfb2jpKrBnCw28aevnH8HbE5YbcMXpdaVv2KmueDu6 torjus@gunter"
];
};
}