2024-03-30 19:43:52 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 15:18:13 -05:00
|
|
|
options.user.gpg.enable = lib.mkEnableOption "enable gpg";
|
|
|
|
config = lib.mkIf config.user.gpg.enable {
|
|
|
|
programs.gpg.enable = true;
|
2024-03-30 19:43:52 -05:00
|
|
|
|
2024-05-29 15:18:13 -05:00
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
|
|
|
pinentryPackage = lib.mkDefault pkgs.pinentry-tty;
|
|
|
|
};
|
2024-03-30 19:43:52 -05:00
|
|
|
};
|
|
|
|
}
|