21 lines
441 B
Nix
21 lines
441 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.user.pass.enable = lib.mkEnableOption "enable pass password manager";
|
|
config = lib.mkIf config.user.pass.enable {
|
|
programs.password-store = {
|
|
enable = true;
|
|
settings = {
|
|
PASSWORD_STORE_DIR = "$HOME/keys/password-store";
|
|
};
|
|
};
|
|
|
|
programs.nushell.extraEnv = ''
|
|
$env.PASSWORD_STORE_DIR = ($env.HOME | path join "keys" "password-store")
|
|
'';
|
|
};
|
|
}
|