aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/gpg.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home-manager/gpg.nix')
-rw-r--r--modules/home-manager/gpg.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/home-manager/gpg.nix b/modules/home-manager/gpg.nix
index fda4231..4c54efb 100644
--- a/modules/home-manager/gpg.nix
+++ b/modules/home-manager/gpg.nix
@@ -2,12 +2,12 @@
config,
pkgs,
lib,
- system,
...
}:
let
pinentryPackage = if pkgs.stdenv.isDarwin then pkgs.pinentry_mac else pkgs.pinentry-curses;
+ pinentryProgram = if pkgs.stdenv.isDarwin then "pinentry-mac" else "pinentry-curses";
in
{
options.gpg.enable = lib.mkEnableOption "Setup gpg and agent";
@@ -16,6 +16,7 @@ in
services.gpg-agent = {
enable = true;
pinentry.package = pinentryPackage;
+ pinentry.program = pinentryProgram;
};
};
}