2024-05-03 01:36:17 +00:00
|
|
|
{ pkgs, config, username, ... }: {
|
2023-09-15 14:53:38 +00:00
|
|
|
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 = {
|
2024-05-03 01:36:17 +00:00
|
|
|
"/persist/home/${username}".directories = [ ".password-store" ];
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
}
|