nix: configure pinentry in home-manager

This commit is contained in:
Primrose 2024-07-05 10:50:12 +02:00
parent 0b11346dae
commit cf5adcd4df
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 26 additions and 14 deletions

View file

@ -0,0 +1,15 @@
{ pkgs, lib, ... }:
{
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
enableFishIntegration = true;
defaultCacheTtl = 1209600;
pinentryPackage = lib.mkMerge [
(lib.mkIf pkgs.stdenv.isLinux pkgs.pinentry-tty)
(lib.mkIf pkgs.stdenv.isDarwin pkgs.pinentry_mac)
];
};
}