flowback-infra/modules/sops.nix
2026-03-03 11:21:32 +01:00

15 lines
391 B
Nix

{ config, lib, ... }:
{
# sops-nix reads secrets from YAML files in ./secrets
# You will create these later.
sops.defaultSopsFile = ../secrets/secrets.yaml;
# Where the age key lives on target machines
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
# Good to have a dedicated secrets mount/dir
systemd.tmpfiles.rules = [
"d /var/lib/sops-nix 0700 root root - -"
];
}