From 203629c4765f3b4ec1063f5932a2acdabddccf6b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 21 Dec 2020 22:35:13 -0500 Subject: [PATCH] Add modules.shell.pass.passwordStoreDir option --- default.nix | 1 - modules/shell/pass.nix | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index 49822c9a..39e65420 100644 --- a/default.nix +++ b/default.nix @@ -27,7 +27,6 @@ with inputs; "dotfiles=${dotFilesDir}" ]; binaryCaches = [ - "https://cache.nixos.org/" "https://nix-community.cachix.org" ]; binaryCachePublicKeys = [ diff --git a/modules/shell/pass.nix b/modules/shell/pass.nix index f5382f08..0b6a262a 100644 --- a/modules/shell/pass.nix +++ b/modules/shell/pass.nix @@ -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; }; }