mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
sops-ini-gpg-key: add install check
This commit is contained in:
parent
c8eaa32f00
commit
98afd85ef8
1 changed files with 5 additions and 0 deletions
|
@ -15,4 +15,9 @@ stdenv.mkDerivation {
|
|||
coreutils utillinux gnupg
|
||||
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ unixtools.hostname ])}
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/sops-init-gpg-key --hostname server01 --gpghome $TMPDIR/key
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue