mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
16 lines
426 B
Nix
16 lines
426 B
Nix
{lib, ...}: let
|
|
inherit (lib.modules) mkMerge;
|
|
in {
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
enableExtraSocket = true;
|
|
enableSshSupport = false;
|
|
extraConfig = mkMerge [
|
|
"auto-expand-secmem 0x30000" # otherwise "gpg: public key decryption failed: Cannot allocate memory"
|
|
"pinentry-timeout 30"
|
|
"allow-loopback-pinentry"
|
|
"enable-ssh-support"
|
|
"no-allow-external-cache"
|
|
];
|
|
};
|
|
}
|