mirror of
https://github.com/gburd/nix-config.git
synced 2024-09-09 11:26:12 +00:00
![Greg Burd](/assets/img/avatar_default.png)
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
17 lines
502 B
Nix
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" ];
|
|
};
|
|
}
|