Help changing config for Mupen64Plus

Thanks for popping in to help.

I’m on NixOS following the unstable channel and only using configuration.nix for manging my system. I’ve been using Linux on and off casually for years but this last year I’ve had NixOS on my Surface Laptop 3 which I use as a hobby game dev/mobile gaming machine. Probably still only in the hundreds of hours.

I’ve added mupen64plus to my configuration.nix and tried to play with a PS4 controller connected via bluetooth but a warning comes up saying joypad “PS4 controller” config not found, defaulting to keyboard and recommends modifying InputAutoConfig.ini. Of course mupen64plus by default puts all config files in nix/store which is read-only and therefore I can’t add my one line “[PS4 controller]” to the appropriate place some 1000 lines in.

How would you fix this?

I’ll continue to look into solutions in the meantime. Maybe I can config mupen64plus to use a different directory for config files like in /home/user…

Thanks again

From mupen64plus man page:

--datadir directory
   Specifies a directory to search for shared data files (fonts, cheat codes, .ini files).  Default is ${PREFIX}/share/mupen64plus/.