system/users/modules/pass.nix

26 lines
480 B
Nix
Raw Normal View History

2022-10-12 01:41:32 +03:00
{ config, pkgs, ... }:
let
passDataDir = "${config.xdg.dataHome}/pass";
myPassPackage = pkgs.pass-minimal.withExtensions (ext: [
ext.pass-audit
]);
in
{
programs.password-store = {
enable = true;
package = myPassPackage;
settings = {
PASSWORD_STORE_DIR = "${passDataDir}/store";
};
};
services.pass-secret-service.enable = true;
programs.gpg.enable = true;
2022-10-17 17:43:06 +03:00
services.gpg-agent = {
enable = true;
pinentryFlavor = "gtk2";
};
2022-10-12 01:41:32 +03:00
}