nix-config/modules/features/desktop/gnupg-agent.nix
2026-04-15 18:26:05 -04:00

21 lines
434 B
Nix

{ ... }:
{
config.dendritic.features.gnupg-agent = {
nixosModules = [
(
{ pkgs, ... }:
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-qt;
};
environment.sessionVariables = {
SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh";
};
}
)
];
};
}