2024-01-12 08:19:20 +00:00
|
|
|
{ config, lib, pkgs, ... }: {
|
|
|
|
xdg.configFile."pass-git-helper/git-pass-mapping.ini".source =
|
|
|
|
./git-pass-mapping.ini;
|
2023-09-15 07:13:52 +01:00
|
|
|
programs = {
|
|
|
|
gpg.enable = true;
|
|
|
|
password-store = {
|
|
|
|
enable = true;
|
2023-09-28 08:27:13 +01:00
|
|
|
package = pkgs.pass-nodmenu.withExtensions
|
2023-09-15 07:13:52 +01:00
|
|
|
(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";
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
};
|
2024-01-12 08:19:20 +00:00
|
|
|
git.extraConfig.credential = {
|
|
|
|
helper = "${pkgs.pass-git-helper}/bin/pass-git-helper";
|
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
};
|
2024-01-14 12:54:45 +00:00
|
|
|
services.gpg-agent = rec {
|
|
|
|
enable = true;
|
|
|
|
maxCacheTtl = 86400;
|
|
|
|
defaultCacheTtl = maxCacheTtl;
|
|
|
|
defaultCacheTtlSsh = maxCacheTtl;
|
|
|
|
pinentryFlavor = lib.mkDefault "curses";
|
|
|
|
extraConfig = ''
|
|
|
|
no-allow-external-cache
|
|
|
|
'';
|
2023-09-15 07:13:52 +01:00
|
|
|
};
|
|
|
|
}
|