nixos/home/pass/default.nix
Evie Litherland-Smith 5a7cbee56d Move pass/agent.nix to pass/service.nix
Add password-store-sync service
Fix passwors store directory setting by using nix variables
2023-09-05 17:44:23 +01:00

16 lines
382 B
Nix

{ config, pkgs, ... }:
{
programs = {
gpg.enable = true;
password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
settings.PASSWORD_STORE_DIR = with config.home;
"${homeDirectory}/.password-store";
};
git.extraConfig.credential.helper =
"${pkgs.gitFull}/bin/git-credential-libsecret";
};
}