1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07: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; environmentVariables = config.environment.variables;
homeVariables = homeConfig.home.sessionVariables; homeVariables = homeConfig.home.sessionVariables;
homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} '' # homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} ''
alias export=echo # alias export=echo
# echo foo > $out # # echo foo > $out
# FIXME # # FIXME
eval $(cat ${homeConfig.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh) > $out # eval $(cat ${homeConfig.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh) > $out
'' # ''
# |> (aaa: (_: break _) aaa) # # |> (aaa: (_: break _) aaa)
|> readFile # |> readFile
|> splitString "\n" # |> splitString "\n"
|> filter (s: s != "") # |> filter (s: s != "")
|> map (match "([^=]+)=(.*)") # |> map (match "([^=]+)=(.*)")
|> map (keyAndValue: nameValuePair (first keyAndValue) (last keyAndValue)) # |> map (keyAndValue: nameValuePair (first keyAndValue) (last keyAndValue))
|> foldl' (x: y: x // y) {}; # |> foldl' (x: y: x // y) {};
homeVariablesExtra = {};
in environmentVariables // homeVariables // homeVariablesExtra; in environmentVariables // homeVariables // homeVariablesExtra;
shellAliases = removeAttrs config.environment.shellAliases [ "ls" "l" ] // { shellAliases = removeAttrs config.environment.shellAliases [ "ls" "l" ] // {