You should not need to edit luarc. I suggest that you remove it, and edit darktablerc to remove all lines that have ‘lua’ in them. Then see
luarc
darktablerc
and