From afaa85cf32a3f0d093afe4a49a14f97b0514e6f9 Mon Sep 17 00:00:00 2001 From: Francesco Noacco Date: Sat, 7 Feb 2026 14:21:07 +0100 Subject: [PATCH] vivid: add nushell integration --- modules/programs/vivid.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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; + }; }; }