diff --git a/modules/programs/vivid.nix b/modules/programs/vivid.nix index f4fe8009..301d8d70 100644 --- a/modules/programs/vivid.nix +++ b/modules/programs/vivid.nix @@ -17,8 +17,11 @@ let mkBashIntegrationOption mkZshIntegrationOption mkFishIntegrationOption + mkNushellIntegrationOption ; + inherit (lib.hm.nushell) mkNushellInline; + cfg = config.programs.vivid; yamlFormat = pkgs.formats.yaml { }; in @@ -35,6 +38,7 @@ in enableBashIntegration = mkBashIntegrationOption { inherit config; }; enableZshIntegration = mkZshIntegrationOption { inherit config; }; enableFishIntegration = mkFishIntegrationOption { inherit config; }; + enableNushellIntegration = mkNushellIntegrationOption { inherit config; }; colorMode = mkOption { type = @@ -160,5 +164,9 @@ in programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration '' set -gx LS_COLORS "$(${vividCommand})" ''; + + programs.nushell.environmentVariables = mkIf cfg.enableNushellIntegration { + LS_COLORS = mkNushellInline vividCommand; + }; }; }