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:
parent
6c42f34c45
commit
366eb26758
1 changed files with 14 additions and 13 deletions
|
@ -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" ] // {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue