1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 18:47:44 +00:00

fix: remove broken ifd

This commit is contained in:
RGBCube 2025-02-26 02:44:18 +03:00
parent 6c42f34c45
commit 366eb26758
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -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" ] // {