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

nushell: set variablesMap properly

This commit is contained in:
RGBCube 2025-07-19 20:07:33 +03:00
parent f03a18219e
commit 4a90dba591
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -85,6 +85,10 @@ in {
homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} '' homeVariablesExtra = pkgs.runCommand "home-variables-extra.env" {} ''
bash -ic ' bash -ic '
${variablesMap
|> mapAttrsToList (name: value: "export ${name}='${value}'")
|> concatStringsSep "\n"}
alias export=echo alias export=echo
source ${config'.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh source ${config'.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh
' > $out ' > $out