nixos-config/configurations/gnupg.nix
Charlotte Van Petegem cfb48de40c Reorganize for zfs
2020-05-23 09:59:32 +02:00

22 lines
538 B
Nix

{ ... }:
{
custom.zfs.homeLinks = [
{ path = ".gnupg/crls.d"; type = "data"; }
{ path = ".gnupg/private-keys-v1.d"; type = "data"; }
{ path = ".gnupg/pubring.kbx"; type = "data"; }
{ path = ".gnupg/trustdb.gpg"; type = "data"; }
];
programs.gnupg.agent.enable = true;
home-manager.users.charlotte = { pkgs, ... }: {
programs = {
gpg.enable = true;
};
services.gpg-agent = {
enable = true;
defaultCacheTtl = 7200;
maxCacheTtl = 99999;
pinentryFlavor = "qt";
};
};
}