nix-config/home/gburd/features/pass/default.nix

18 lines
502 B
Nix
Raw Normal View History

{ pkgs, config, ... }: {
programs.password-store = {
enable = true;
settings = { PASSWORD_STORE_DIR = "$HOME/.password-store"; };
package = pkgs.pass.withExtensions (p: [ p.pass-otp ]);
};
services.pass-secret-service = {
enable = true;
storePath = "${config.home.homeDirectory}/.password-store";
extraArgs = [ "-e${config.programs.password-store.package}/bin/pass" ];
};
home.persistence = {
"/persist/home/misterio".directories = [ ".password-store" ];
};
}