system/users/modules/pass.nix

22 lines
384 B
Nix
Raw Normal View History

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