nixos-config/users/root/default.nix
Charlotte 🦝 Delenk fba9346c89
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22921 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22920 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22919 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #22918 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522 Hydra build #22922 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22923 of nixos-config:pr618:nixosConfigurations.not522-installer
add home-manager to root
2024-11-02 08:43:37 +01:00

18 lines
627 B
Nix

{config, ...}: {
users.users.root = {
createHome = true;
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;
};
environment.persistence."/persistent" = {
directories = ["/root/.cache/nix"]; # for sanity
files = ["/root/.bash_history"];
};
home-manager.users.root = {};
}