[NixOS] Use gnupg 2_4_0 to avoid hanging emacs in loop when writing

This commit is contained in:
Ivan Malison 2023-08-03 20:47:12 -06:00
parent 87842d31cf
commit bd3eb57de3
3 changed files with 20 additions and 2 deletions

View File

@ -21,7 +21,13 @@
systemd.services.systemd-user-sessions.enable = false; systemd.services.systemd-user-sessions.enable = false;
# Security # Security
programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; programs.gnupg = {
agent = {
enable = true;
enableSSHSupport = true;
};
package = pkgs.gnupg_2_4_0;
};
services.pcscd.enable = true; services.pcscd.enable = true;
# Networking # Networking

View File

@ -17,12 +17,14 @@ inputs: { pkgs, config, ... }: {
enable = true; enable = true;
}; };
programs.gpg.package = pkgs.gnupg_2_4_0;
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
defaultCacheTtl = 8 * 60 * 60; defaultCacheTtl = 8 * 60 * 60;
maxCacheTtl = 8 * 60 * 60; maxCacheTtl = 8 * 60 * 60;
enableSshSupport = true; enableSshSupport = true;
pinentryFlavor = "qt"; pinentryFlavor = "gnome3";
}; };
services.blueman-applet = { services.blueman-applet = {

View File

@ -23,4 +23,14 @@ final: prev: {
hash = "sha256-v0rr1s32jj79A8IGfJgSGJVlz7rSnZYn4ealOpqee0w="; hash = "sha256-v0rr1s32jj79A8IGfJgSGJVlz7rSnZYn4ealOpqee0w=";
}; };
}); });
gnupg_2_4_0 = prev.gnupg.overrideAttrs(_: rec {
pname = "gnupg";
# 2.4.1 breaks emacs
version = "2.4.0";
src = prev.fetchurl {
url = "mirror://gnupg/gnupg/${pname}-${version}.tar.bz2";
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
};
});
} }