nixos-config/2configs/secrets/user-passwords.nix

15 lines
317 B
Nix
Raw Normal View History

2023-06-10 20:53:47 +02:00
{ config, ... }:
{
2023-06-11 00:47:05 +02:00
imports = [ ./default.nix ];
2023-06-10 20:53:47 +02:00
sops.secrets = {
"passwd/makefu".neededForUsers = true;
"passwd/root".neededForUsers = true;
};
2023-06-11 00:47:05 +02:00
2023-06-10 20:53:47 +02:00
users.users = {
makefu.passwordFile = config.sops.secrets."passwd/makefu".path;
root.passwordFile = config.sops.secrets."passwd/root".path;
};
}