2023-09-15 07:13:52 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
home.packages = [ pkgs.pinentry ];
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
2023-09-30 08:10:21 +01:00
|
|
|
gpg-agent = rec {
|
2023-09-15 07:13:52 +01:00
|
|
|
enable = true;
|
2023-09-30 08:10:21 +01:00
|
|
|
maxCacheTtl = 86400;
|
|
|
|
defaultCacheTtl = maxCacheTtl;
|
|
|
|
defaultCacheTtlSsh = maxCacheTtl;
|
2023-10-30 15:40:28 +00:00
|
|
|
pinentryFlavor = "gnome3";
|
2023-09-15 07:13:52 +01:00
|
|
|
extraConfig = ''
|
|
|
|
no-allow-external-cache
|
|
|
|
'';
|
|
|
|
};
|
2023-10-18 06:57:42 +01:00
|
|
|
git-sync = {
|
|
|
|
enable = true;
|
|
|
|
repositories.password-store = {
|
|
|
|
path = "${config.home.homeDirectory}/.password-store";
|
|
|
|
uri = "git+https://git.xenia.me.uk/xenia/pass.git";
|
|
|
|
};
|
2023-10-16 13:19:38 +01:00
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
};
|
|
|
|
}
|