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

21 lines
439 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;
sopsFile = ../../secrets/common.yaml;
};
"passwd/root" = {
neededForUsers = true;
sopsFile = ../../secrets/common.yaml;
};
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 = {
makefu.passwordFile = config.sops.secrets."passwd/makefu".path;
root.passwordFile = config.sops.secrets."passwd/root".path;
};
}