diff --git a/users/modules/global/gpg.nix b/users/modules/global/gpg.nix index 385e96d..a338b45 100644 --- a/users/modules/global/gpg.nix +++ b/users/modules/global/gpg.nix @@ -1,10 +1,24 @@ -{ config, main, ... }: { +{ config, main, pkgs, ... }: +{ programs.gpg = { enable = true; homedir = "${config.xdg.dataHome}/gnupg"; + + settings = { + no-comments = false; + comment = [ + "Key URL: https://inx.moe/pub.txt" + "Website: https://inx.moe" + ]; + }; + scdaemonSettings = { disable-ccid = true; }; + + publicKeys = [ + { source = pkgs.fetchurl { url = "https://inx.moe/pub.txt"; sha256 = "sha256-QLxmqS5fbR3zqKNvFV+K22XeLuNfrSp2JxBDQtqgTiE="; }; trust = "ultimate"; } + ]; }; services.gpg-agent = {