1
1
Fork 0
nixos/options/custom/services/gpg-agent.nix

24 lines
431 B
Nix
Raw Normal View History

{
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
};
};
}