2024-08-01 18:27:47 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
2023-07-06 19:32:19 +00:00
|
|
|
key = "0xB853ADA5DA7BBF7A";
|
2024-08-01 18:27:47 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
home.packages = with pkgs; [ pinentry ];
|
2024-01-31 02:46:24 +00:00
|
|
|
home.file.".mozilla/native-messaging-hosts/gpgmejson.json" = {
|
|
|
|
enable = true;
|
|
|
|
text = builtins.toJSON {
|
|
|
|
name = "gpgmejson";
|
|
|
|
description = "JavaScript binding for GnuPG";
|
|
|
|
path = pkgs.gpgme.dev + /bin/gpgme-json;
|
|
|
|
type = "stdio";
|
2024-08-01 18:27:47 +00:00
|
|
|
allowed_extensions = [ "jid1-AQqSMBYb0a8ADg@jetpack" ];
|
2024-01-31 02:46:24 +00:00
|
|
|
};
|
|
|
|
};
|
2023-06-28 20:48:01 +00:00
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default-key = key;
|
|
|
|
trusted-key = key;
|
|
|
|
no-comments = true;
|
|
|
|
no-greeting = true;
|
|
|
|
no-emit-version = true;
|
|
|
|
keyid-format = "0xlong";
|
|
|
|
list-options = "show-uid-validity";
|
|
|
|
verify-options = "show-uid-validity";
|
|
|
|
with-fingerprint = true;
|
|
|
|
with-key-origin = true;
|
2024-01-31 02:46:24 +00:00
|
|
|
keyserver = "hkps://keys.openpgp.org";
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
services.gpg-agent = {
|
2024-08-29 03:05:21 +00:00
|
|
|
enable = false;
|
2023-06-28 20:48:01 +00:00
|
|
|
enableExtraSocket = true;
|
|
|
|
enableSshSupport = true;
|
2024-03-28 02:25:05 +00:00
|
|
|
pinentryPackage = pkgs.pinentry-gnome3;
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
}
|