mixed: gpg fixes, refactoring

This commit is contained in:
Kat Inskip 2023-01-17 15:32:14 -05:00
parent 53eed4454d
commit 1ec876812e
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
50 changed files with 235 additions and 183 deletions

View file

@ -1,7 +1,13 @@
{config, ...}: {
services.gpg-agent.pinentryFlavor = null;
{config,lib,...}: let
inherit (lib.modules) mkForce mkMerge;
in {
services.gpg-agent = {
enable = mkForce false;
pinentryFlavor = null;
};
home.file."${config.programs.gpg.homedir}/gpg-agent.conf".text = ''
pinentry-program /opt/homebrew/bin/pinentry-mac
'';
home.file."${config.programs.gpg.homedir}/gpg-agent.conf".text = mkMerge [
config.services.gpg-agent.extraConfig
"pinentry-program /opt/homebrew/bin/pinentry-mac"
];
}