Most applications, if there is not dotfile config in $XDG_HOME/.config or $HOME, will generate dotfiles with sane defaults.
When I switched distros often it was routine for me to erase the dotfiles specific to say, GNOME or Plasma, as they'd then be restored to default settings.
Oh nice! I would switch to to NixOS for all those goodies but it is above my pay grade jejeje. I saw some time ago a fork of NixOS designed for not-so-tech-savy users so I have been checking it ever so often.
I won't lie, it was a learning curve. That said you don't have to go full blown nixos. I use nix + home manager to manage my macOS and Ubuntu user dotfiles.
You can also use nix per project with dev shells and direnv to automatically load the dev shell when in the repo.
I maintain a nix config for my work's repo and it keeps everyone (Mac or Linux) on the exact same version of our tooling (node, python, bash, etc.).