We need to set the following environment variables to make luarocks behave correctly LUAROCKS_SYSCONFDIR = INSTALL_DIR + "/config" Then we can set everything else relative to `INSTALL_DIR + "/config"`, `INSTALL_DIR + "/config/config-" + LUA_VERSION + ".lua"`