diff --git a/etc/profile.sh b/etc/profile.sh index 30fc8217fdf..3696012f61b 100644 --- a/etc/profile.sh +++ b/etc/profile.sh @@ -1,5 +1,8 @@ export PATH=@wrapperDir@:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin -export LD_LIBRARY_PATH=@nssModulesPath@:/var/run/current-system/sw/lib +export LD_LIBRARY_PATH=/var/run/current-system/sw/lib +if test -n "@nssModulesPath@"; then + LD_LIBRARY_PATH=@nssModulesPath@:$LD_LIBRARY_PATH +fi export MODULE_DIR=@modulesTree@/lib/modules export NIXPKGS_CONFIG=/nix/etc/config.nix export PAGER="less -R"