mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-22 09:40:47 +03:00
parent
e543aa7d68
commit
85da8b7366
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
writeShellScriptBin,
|
writeShellScriptBin,
|
||||||
runtimeShell,
|
runtimeShell,
|
||||||
callPackage,
|
callPackage,
|
||||||
|
@ -17,7 +18,7 @@ let
|
||||||
nixInstantiate = "${nix}/bin/nix-instantiate";
|
nixInstantiate = "${nix}/bin/nix-instantiate";
|
||||||
mktempBin = "${mktemp}/bin/mktemp";
|
mktempBin = "${mktemp}/bin/mktemp";
|
||||||
in
|
in
|
||||||
writeShellScriptBin "agenix" ''
|
lib.recursiveUpdate (writeShellScriptBin "agenix" ''
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
PACKAGE="agenix"
|
PACKAGE="agenix"
|
||||||
|
@ -177,4 +178,8 @@ function rekey {
|
||||||
|
|
||||||
[ $REKEY -eq 1 ] && rekey && exit 0
|
[ $REKEY -eq 1 ] && rekey && exit 0
|
||||||
edit "$FILE" && cleanup && exit 0
|
edit "$FILE" && cleanup && exit 0
|
||||||
''
|
'')
|
||||||
|
|
||||||
|
{
|
||||||
|
meta.description = "age-encrypted secrets for NixOS";
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue