nix-config/home/gburd/features/pass/default.nix
Greg Burd f3fd89af54
A fork of Misterio77 and his standard template.
Many thangs to the hard work and generous availability of:
git@github.com:Misterio77/nix-config.git
2023-09-15 10:53:38 -04:00

17 lines
502 B
Nix

{ 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" ];
};
}