From 1b758526218a47489db3ec58de60b75966e6f7f1 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 24 Jan 2024 03:24:09 -0500 Subject: [PATCH] global/gpg: setup with new PGP key --- users/modules/global/gpg.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 = {