Setting caps lock as ctrl not working

Maybe it would be possible to create systemd user service. But not sure how exactly to configure it to be triggered on activation.

Alternative might be taking

but instead of extraGSettingsOverrides, which only overrides default values again, writing the requested values directly to dconf database using the same method as in

https://github.com/NixOS/nixpkgs/pull/63790