1
1
Fork 0
nixos/options/custom/services/gpg-agent.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

23 lines
431 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.services.gpg-agent;
in
{
options.custom.services.gpg-agent.enable = mkOption { default = false; };
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
# https://wiki.archlinux.org/title/GnuPG#gpg-agent
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-gnome3; # Default: curses
};
};
}