From aa5ac7a7a16c3671b71eb5cac2512398a7e5bbe9 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 17 Mar 2024 17:52:16 +0300 Subject: 2024-03-17 --- modules/nixos/gnupg.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/nixos/gnupg.nix') diff --git a/modules/nixos/gnupg.nix b/modules/nixos/gnupg.nix index b86be9b..5300554 100644 --- a/modules/nixos/gnupg.nix +++ b/modules/nixos/gnupg.nix @@ -1,6 +1,7 @@ { config, lib, + pkgs, ... }: with lib; let @@ -8,8 +9,8 @@ with lib; let in { options.nixfiles.modules.gnupg.pinentry = mkOption { description = "Name of a pinentry implementation."; - type = types.str; - default = "curses"; + type = types.package; + default = pkgs.pinentry-curses; }; config = mkIf cfg.enable { @@ -31,7 +32,7 @@ in { sshKeys = [my.pgp.grip]; - pinentryFlavor = cfg.pinentry; + pinentryPackage = cfg.pinentry; }; }; }; -- cgit 1.4.1