flake/home/applications/gpg/default.nix
2024-01-17 19:53:00 +08:00

16 lines
256 B
Nix

{
config,
lib,
pkgs,
...
}: {
programs.gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
};
services.gpg-agent = {
enable = lib.mkIf (!pkgs.stdenv.hostPlatform.isDarwin) true;
pinentryFlavor = "gnome3";
};
}