2023-07-18 22:58:42 +02:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
let
|
|
|
|
pinentry =
|
2023-07-22 17:22:54 +02:00
|
|
|
if config.gtk.enable then {
|
2023-07-18 22:58:42 +02:00
|
|
|
packages = [ pkgs.pinentry-gnome pkgs.gcr ];
|
|
|
|
name = "gnome3";
|
|
|
|
} else {
|
|
|
|
packages = [ pkgs.pinentry-curses ];
|
|
|
|
name = "curses";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home.packages = pinentry.packages;
|
|
|
|
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = pinentry.name;
|
|
|
|
};
|
|
|
|
|
2023-07-18 22:59:52 +02:00
|
|
|
programs.gpg.enable = true;
|
2023-12-12 14:32:06 +01:00
|
|
|
|
|
|
|
satellite.persistence.at.state.apps.gpg.directories = [ ".gnupg" ];
|
2023-07-18 22:58:42 +02:00
|
|
|
}
|