Persist Your XKB Configuration Between Login Session
Different
KDE
kxkbrc
Now when I have everything as desired it would be nice to avoid loosing this every time X server updates.
Well, you can not avoid it but minimizing the amount of steps needed to get your system back to your preferred setup is absolutely possible.
This can be easily scripted but I have never had time to commit to it and simply preserved the files with my configuration changes.
The file with options which is /usr/share/X11/xkb/symbols/art-mods
in my case is usually kept after updates unless you completely reinstall the system.
On the other hand file in /usr/share/X11/xkb/rules
are always overwritten which makes you system loose awareness of your options.
In my case I simply copy my variants back from my git versioned directory and it always worked well for me.
You can then run setxkbmap -option <you-options>
to apply them in the current session or simply re-login to have them applied on X Server restart.
XKBCOMP
Preserve configuration with Check XKB configuration: setxkbmap -print -verbose 10 https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Viewing_keyboard_settings i
XKBCOMP
xkbcomp $DISPLAY output.xkb xkbcomp input.xkb $DISPLAY