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