diff --git a/nix/shell-plugins.nix b/nix/shell-plugins.nix index 0f51f68a..3d901ad5 100644 --- a/nix/shell-plugins.nix +++ b/nix/shell-plugins.nix @@ -48,9 +48,16 @@ in { zsh.shellAliases = aliases; fish.shellAliases = aliases; }; - } // optionalAttrs is-home-manager { home.packages = packages; } - // optionalAttrs (!is-home-manager) { - environment.systemPackages = packages; - }) + } // optionalAttrs is-home-manager { + home = { + inherit packages; + sessionVariables = { OP_PLUGINS_SOURCED = "1"; }; + }; + } // optionalAttrs (!is-home-manager) { + environment = { + systemPackages = packages; + variables = { OP_PLUGINS_SOURCED = "1"; }; + }; + }) ]); }