nixos-config/2configs/secrets/user-passwords.nix
2024-05-31 10:50:20 +02:00

15 lines
329 B
Nix

{ config, ... }:
{
imports = [ ./default.nix ];
sops.secrets = {
"passwd-makefu".neededForUsers = true;
"passwd-root".neededForUsers = true;
};
users.users = {
makefu.hashedPasswordFile = config.sops.secrets."passwd-makefu".path;
root.hashedPasswordFile = config.sops.secrets."passwd-root".path;
};
}