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

15 lines
329 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-10 20:53:47 +02:00
};
2023-06-11 00:47:05 +02:00
2023-06-10 20:53:47 +02:00
users.users = {
2024-05-31 10:50:20 +02:00
makefu.hashedPasswordFile = config.sops.secrets."passwd-makefu".path;
root.hashedPasswordFile = config.sops.secrets."passwd-root".path;
2023-06-10 20:53:47 +02:00
};
}