infrastructure/packages/sops-rekey.nix
Fabian Hauser fef2377502
All checks were successful
CI / build (push) Successful in 13m53s
Commit files for public release
2024-10-02 16:57:36 +03:00

17 lines
321 B
Nix

{
pkgs,
self,
system,
...
}:
pkgs.writeShellApplication {
name = "sops-rekey";
meta.description = "Rekey all sops secrets with changed keys";
runtimeInputs = [
pkgs.findutils
self.packages.${system}.sops
];
text = ''
find . -regex '.*\.sops\..*$' -type f -exec sops updatekeys {} \;
'';
}