{ config, lib, pkgs, ... }: with lib; let cfg = config.local.environ; in { config = mkIf cfg.enable { programs.password-store = { enable = true; package = pkgs.pass.withExtensions (exts: (with exts; [ pass-audit pass-genphrase pass-otp pass-tomb pass-update ]) ++ [ pkgs.local.pass-bcr pkgs.local.pass-tail ]); settings = { PASSWORD_STORE_DIR = "${config.home.homeDirectory}/pass"; PASSWORD_STORE_TOMB_KEY = "${config.home.homeDirectory}/tomb/pass.key.gpg"; PASSWORD_STORE_TOMB_FILE = "${config.home.homeDirectory}/tomb/pass.tomb"; }; }; }; }