2024-10-29 13:55:53 +00:00
|
|
|
{config, ...}: {
|
|
|
|
users.users.root = {
|
2024-10-30 06:45:16 +00:00
|
|
|
createHome = true;
|
2024-10-29 13:55:53 +00:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDXQlfvRUm/z6eP1EjsajIbMibkq9n+ymlbBi7NFiOuaAAAABHNzaDo= ssh:"
|
|
|
|
];
|
|
|
|
hashedPasswordFile = config.sops.secrets."users/users/root/hashedPassword".path;
|
|
|
|
};
|
|
|
|
sops.secrets."users/users/root/hashedPassword" = {
|
|
|
|
neededForUsers = true;
|
|
|
|
sopsFile = ./password.yaml;
|
|
|
|
};
|
2024-10-31 17:08:51 +00:00
|
|
|
environment.persistence."/persistent" = {
|
|
|
|
directories = ["/root/.cache/nix"]; # for sanity
|
|
|
|
files = ["/root/.bash_history"];
|
|
|
|
};
|
2024-11-02 07:43:37 +00:00
|
|
|
home-manager.users.root = {};
|
2024-11-02 13:24:01 +00:00
|
|
|
environment.impermanence.users = ["root"];
|
2024-10-29 13:55:53 +00:00
|
|
|
}
|