From 366eb26758e1d63b85b4854d4aaf4cd564518be5 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 26 Feb 2025 02:44:18 +0300 Subject: [PATCH] fix: remove broken ifd --- modules/common/nushell/default.nix | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/modules/common/nushell/default.nix b/modules/common/nushell/default.nix index add0f75..0683e34 100644 --- a/modules/common/nushell/default.nix +++ b/modules/common/nushell/default.nix @@ -104,19 +104,20 @@ in { environmentVariables = config.environment.variables; homeVariables = homeConfig.home.sessionVariables; - homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} '' - alias export=echo - # echo foo > $out - # FIXME - eval $(cat ${homeConfig.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh) > $out - '' - # |> (aaa: (_: break _) aaa) - |> readFile - |> splitString "\n" - |> filter (s: s != "") - |> map (match "([^=]+)=(.*)") - |> map (keyAndValue: nameValuePair (first keyAndValue) (last keyAndValue)) - |> foldl' (x: y: x // y) {}; + # homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} '' + # alias export=echo + # # echo foo > $out + # # FIXME + # eval $(cat ${homeConfig.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh) > $out + # '' + # # |> (aaa: (_: break _) aaa) + # |> readFile + # |> splitString "\n" + # |> filter (s: s != "") + # |> map (match "([^=]+)=(.*)") + # |> map (keyAndValue: nameValuePair (first keyAndValue) (last keyAndValue)) + # |> foldl' (x: y: x // y) {}; + homeVariablesExtra = {}; in environmentVariables // homeVariables // homeVariablesExtra; shellAliases = removeAttrs config.environment.shellAliases [ "ls" "l" ] // {