1
Fork 0
satellite/home/features/cli/gpg.nix
2023-07-21 19:30:48 +03:00

23 lines
415 B
Nix

{ pkgs, config, ... }:
let
pinentry =
# if config.gtk.enable then {
if false then {
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;
};
programs.gpg.enable = true;
}