The recommended way seems to be to use mkOptionDefault
keybindings = let
inherit (config.home-manager.users.user.wayland.windowManager.sway.config) modifier menu;
in
lib.mkOptionDefault
{
"${modifier}+Space" = "exec ${menu}";
};
it does append my new keybinds to the config but it does not replace the old one, so it results keybind conflicts. And there seems to be no way to just remove a keybind.
I’ve also seen people use mkAfter, but it overwrites the defaults for me. I also tried mkMerge but it results in a build fail.
What am I doing wrong?