Files
2026-03-31 16:53:11 +02:00

19 lines
467 B
Nix

{
config,
pkgs,
...
}: {
systemd.user.services.gpg-agent = {
description = "GnuPG cryptographic agent and passphrase cache";
documentation = ["man:gpg-agent(1)"];
wantedBy = ["default.target"];
serviceConfig = {
Environment = "GNUPGHOME=${config.xdg.configHome}/gnupg";
ExecStart = "${pkgs.gnupg}/bin/gpg-agent --supervised";
ExecReload = "${pkgs.gnupg}/bin/gpgconf --reload gpg-agent";
Type = "simple";
};
};
}