nixos/home/pass.nix
Evie Litherland-Smith f2eadee91e Move firefox config up to system level
Enables automatic installation of firefox plugins
Enable working passff integration
2023-10-06 13:56:11 +01:00

29 lines
691 B
Nix

{ config, pkgs, ... }:
{
home.packages = [ pkgs.pinentry ];
programs = {
gpg.enable = true;
password-store = {
enable = true;
package = pkgs.pass-nodmenu.withExtensions
(exts: with exts; [ pass-otp pass-update pass-audit pass-import ]);
settings.PASSWORD_STORE_DIR = with config.home;
"${homeDirectory}/.password-store";
};
};
services = {
gpg-agent = rec {
enable = true;
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl;
pinentryFlavor = "gtk2";
extraConfig = ''
no-allow-external-cache
'';
};
password-store-sync.enable = true;
};
}