diff --git a/shell.nix b/shell.nix index 4ae76d6..5c1fc73 100644 --- a/shell.nix +++ b/shell.nix @@ -19,8 +19,10 @@ pkgs.mkShell { gpg-connect-agent reloadagent /bye # Import public key + export KEY_URL="$(gpg --card-status | grep URL | cut -d' ' -f6)" + echo $KEY_URL - curl $(gpg --card-status | grep URL | cut -d' ' -f6) | gpg --import + curl $KEY_URL | gpg --import gpg --card-status touch dummy