nixos/home/pass.nix

34 lines
881 B
Nix
Raw Normal View History

{ 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 ]);
2023-10-10 07:18:59 +01:00
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
};
services = {
2023-09-30 08:10:21 +01:00
gpg-agent = rec {
enable = true;
2023-09-30 08:10:21 +01:00
maxCacheTtl = 86400;
defaultCacheTtl = maxCacheTtl;
defaultCacheTtlSsh = maxCacheTtl;
2023-09-28 08:36:41 +01:00
pinentryFlavor = "gtk2";
extraConfig = ''
no-allow-external-cache
'';
};
2023-10-16 13:19:38 +01:00
git-sync.repositories.password-store = {
path = "${config.home.homeDirectory}/.password-store";
uri = "git+https://git.xenia.me.uk/xenia/pass.git";
};
};
}