nixos-config/nixos/modules/gnupg/default.nix
2025-03-06 11:37:30 +01:00

12 lines
286 B
Nix

{ pkgs, lib,... }:
{
programs.gnupg.agent = {
enable = true;
settings = {
pinentry-program = lib.mkForce "${pkgs.pinentry-curses}/bin/pinentry-curses";
};
};
environment.systemPackages = with pkgs;[
(pass.withExtensions (exts: with exts;[pass-otp]))
];
}