nix-conf/system/modules/sops-nix.nix
danny 6a71b601f5 update: system update & refactor
# Breaking Changes
- sops location movod to "system/dev/<dev-name>/sops/sops-conf.nix"
- flake devices declaration changes
- whole flake update
2025-10-14 16:49:03 +08:00

18 lines
335 B
Nix

{ config, ... }:
let
defaultSopsFile = ../.. + "/system/dev/${config.networking.hostName}/sops/secret.yaml";
ageKeyFile = "/var/lib/sops-nix/key.txt";
in
{
sops = {
defaultSopsFile = defaultSopsFile;
age = {
keyFile = ageKeyFile;
};
};
environment.variables = {
SOPS_AGE_KEY_FILE = ageKeyFile;
};
}