nixos-config/config/users/root.nix

12 lines
359 B
Nix
Raw Normal View History

2022-06-12 15:39:15 +00:00
{config, ...}: {
2022-04-13 10:29:06 +00:00
users.users.root = {
openssh.authorizedKeys.keys = [
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDXQlfvRUm/z6eP1EjsajIbMibkq9n+ymlbBi7NFiOuaAAAABHNzaDo= ssh:"
];
passwordFile = config.sops.secrets."password/root".path;
};
sops.secrets."password/root" = {
neededForUsers = true;
};
}