Gpg: Add gpg_find to locate keys.
This commit is contained in:
parent
832319969a
commit
39dcd30b9e
|
@ -73,5 +73,19 @@
|
|||
|
||||
_iterate_targets process ''${targets[@]}
|
||||
}
|
||||
|
||||
# Find user keys using keyservers.
|
||||
# Usage: gpg_find <EMAIL>
|
||||
function gpg_find() {
|
||||
local email="''${1}"
|
||||
|
||||
if [[ "''${email}" = "" ]]; then
|
||||
help gpg_find
|
||||
return 2
|
||||
fi
|
||||
|
||||
gpg --locate-keys "''${email}" \
|
||||
|| gpg --locate-keys --auto-key-locate hkps://keys.openpgp.org "''${email}"
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -8,6 +8,11 @@ in
|
|||
gpg = {
|
||||
enable = true;
|
||||
inherit (secret.crypto) publicKeys;
|
||||
mutableKeys = true;
|
||||
mutableTrust = true;
|
||||
settings = {
|
||||
keyserver = "hkps://keys.openpgp.org";
|
||||
};
|
||||
};
|
||||
|
||||
firefox = import ./firefox args;
|
||||
|
|
Loading…
Reference in a new issue