nix-infra/system/sops.nix
2025-05-05 10:43:13 -04:00

21 lines
383 B
Nix
Executable file

{inputs, ...}; let
secretspath = builtins.toString inputs.nix-secrets;
in
{
imports = [
inputs.sops-nix.nixosModules.sops
];
sops = {
defaultSopsFile = "${secretspath}/secrets.yaml";
age = {
keyFile = "/var/lib/sops-nix/key.txt";
generateKey = false;
};
secrets = {
tera_passwd = {
neededForUsers = true;
};
};
};
}