Add modules.shell.pass.passwordStoreDir option
This commit is contained in:
parent
8ffe76912f
commit
203629c476
|
@ -27,7 +27,6 @@ with inputs;
|
|||
"dotfiles=${dotFilesDir}"
|
||||
];
|
||||
binaryCaches = [
|
||||
"https://cache.nixos.org/"
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
|
|
|
@ -4,8 +4,9 @@ with lib;
|
|||
with lib.my;
|
||||
let cfg = config.modules.shell.pass;
|
||||
in {
|
||||
options.modules.shell.pass = {
|
||||
options.modules.shell.pass = with types; {
|
||||
enable = mkBoolOpt false;
|
||||
passwordStoreDir = mkOpt str "$HOME/.secrets/password-store";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -17,6 +18,6 @@ in {
|
|||
then [ exts.pass-tomb ]
|
||||
else [])))
|
||||
];
|
||||
env.PASSWORD_STORE_DIR = "$HOME/.secrets/password-store";
|
||||
env.PASSWORD_STORE_DIR = cfg.passwordStoreDir;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue