Add modules.shell.pass.passwordStoreDir option

This commit is contained in:
Henrik Lissner 2020-12-21 22:35:13 -05:00
parent 8ffe76912f
commit 203629c476
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,6 @@ with inputs;
"dotfiles=${dotFilesDir}"
];
binaryCaches = [
"https://cache.nixos.org/"
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [

View file

@ -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;
};
}