From a9d96c3f51bf0a69326e7380d9f21995550f2187 Mon Sep 17 00:00:00 2001 From: Tom Cammann Date: Mon, 4 Dec 2023 07:57:35 +0000 Subject: [PATCH] broot: Add nushell integration (#4714) Add additional config flag `enableNushellIntegration` in broot.nix to setup broot/br for nushell. --- modules/programs/broot.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/programs/broot.nix b/modules/programs/broot.nix index 179b1224d..6a1680e07 100644 --- a/modules/programs/broot.nix +++ b/modules/programs/broot.nix @@ -175,6 +175,14 @@ in { ''; }; + enableNushellIntegration = mkOption { + default = true; + type = types.bool; + description = '' + Whether to enable Nushell integration. + ''; + }; + package = mkOption { type = types.package; default = pkgs.broot; @@ -226,5 +234,8 @@ in { programs.zsh.initExtra = mkIf cfg.enableZshIntegration (shellInit "zsh"); programs.fish.shellInit = mkIf cfg.enableFishIntegration (shellInit "fish"); + + programs.nushell.extraConfig = + mkIf cfg.enableNushellIntegration (shellInit "nushell"); }; }