mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: configure pinentry in home-manager
This commit is contained in:
parent
0b11346dae
commit
cf5adcd4df
3 changed files with 26 additions and 14 deletions
15
nix/home/_/gpg/default.nix
Normal file
15
nix/home/_/gpg/default.nix
Normal 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)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue