From 1a37a82af9d576b1e1e91583e616a3639b575497 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 29 Jan 2024 10:03:11 +0100 Subject: [PATCH] nushell: add nu_scripts to NU_LIB_DIRS --- home-manager/modules/nushell/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/nushell/default.nix b/home-manager/modules/nushell/default.nix index 0447620..fc68e8c 100644 --- a/home-manager/modules/nushell/default.nix +++ b/home-manager/modules/nushell/default.nix @@ -27,6 +27,8 @@ in ${config.programs.zoxide.package}/bin/zoxide init nushell ${zoxideOptions} | save --force ${config.xdg.cacheHome}/zoxide/init.nu # Temporary fix until zoxide releases new version sed -i 's/def-env/def --env/g' ${config.xdg.cacheHome}/zoxide/init.nu + + $env.NU_LIB_DIRS = ($env.NU_LIB_DIRS | append ${pkgs.nu_scripts}/share/nu_scripts) ''; extraConfig = '' alias vim = nvim @@ -40,7 +42,9 @@ in use kink.nu - use ${pkgs.nu_scripts}/share/nu_scripts/themes/nu-themes/dracula.nu + # use ${pkgs.nu_scripts}/share/nu_scripts/themes/nu-themes/dracula.nu + use themes/nu-themes/dracula.nu + $env.config = ($env.config | merge { color_config: (dracula)}) source ${config.xdg.cacheHome}/zoxide/init.nu