nixos-config/nixos/profiles/users/root/default.nix

16 lines
348 B
Nix
Raw Permalink Normal View History

2024-12-12 19:26:20 +08:00
{ config, ... }:
2024-11-28 01:14:34 +08:00
{
users.users.root = {
2024-12-12 19:26:20 +08:00
hashedPasswordFile = config.sops.secrets."user-password/root".path;
2024-11-28 01:14:34 +08:00
openssh.authorizedKeys.keyFiles = [
./_ssh/marisa-7d76
./_ssh/marisa-a7s
];
};
2024-12-12 19:26:20 +08:00
sops.secrets."user-password/root" = {
neededForUsers = true;
sopsFile = config.sops.secretFiles.get "common.yaml";
};
2024-11-28 01:14:34 +08:00
}