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