nixos-config/2configs/secrets/user-passwords.nix
2023-06-11 00:47:05 +02:00

15 lines
317 B
Nix

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