From 8816d9c06cbaffdde196944cf938d3713b96c64c Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 17 Feb 2025 00:10:47 -0600 Subject: [PATCH] fix: password store stuff missing in shell configs --- lib/modules/home/default.nix | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/modules/home/default.nix b/lib/modules/home/default.nix index 219c7c7..4e81de3 100644 --- a/lib/modules/home/default.nix +++ b/lib/modules/home/default.nix @@ -27,6 +27,7 @@ in cargo desktop gnome + password-manager /* broot @@ -650,28 +651,27 @@ in }; password-manager = - { pkgs, ... }: { - imports = with homeManagerModules; [ - pass - ]; - - home.packages = with pkgs; [ - passage - rage - age-plugin-yubikey - bitwarden-cli - oath-toolkit - # bitwarden-desktop - ]; - }; - - pass = - { pkgs, ... }: + lib, + config, + pkgs, + ... + }: { - programs.password-store = { - enable = true; - package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]); + config = lib.mkIf config.lyte.shell.enable { + programs.password-store = { + enable = true; + package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]); + }; + + home.packages = with pkgs; [ + passage + rage + age-plugin-yubikey + bitwarden-cli + oath-toolkit + # bitwarden-desktop + ]; }; };