1
0
Fork 0
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:
Jörg Thalheim 2020-07-23 08:20:08 +01:00
parent c8eaa32f00
commit 98afd85ef8
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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
'';
}