This commit is contained in:
commit
fef2377502
174 changed files with 7423 additions and 0 deletions
17
packages/sops-rekey.nix
Normal file
17
packages/sops-rekey.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
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 {} \;
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue