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