.dotfiles/pkgs/config/swarsel-sops/default.nix
2026-01-05 04:26:48 +01:00

11 lines
417 B
Nix

{ name, sops, homeConfig, writeShellApplication, ... }:
writeShellApplication {
inherit name;
runtimeInputs = [ sops ];
text = ''
sops updatekeys ${homeConfig.homeDirectory}/secrets/repo/*
sops updatekeys ${homeConfig.homeDirectory}/secrets/nginx/*
sops updatekeys ${homeConfig.homeDirectory}/secrets/work/*
sops updatekeys ${homeConfig.homeDirectory}/hosts/*/*/*/secrets/*/secrets.yaml
'';
}