Home-manager gtk best practices?

On my nixos system with home-manager, I often run into situations where gtk theming files have been modified / overwritten, and I lose the ability to upgrade my system because home-manager + stylix complains about clobbering the files. I was wondering what the best practices were here / solutions people have come up with.

My latest issue has been with dms-shell, but I also struggled with KDE in the past.

Maybe there is some permission trickery I could do to prevent them from getting overwritten outside of a system rebuild?

For GTK2 gtk.gtk2.force does exist, not sure if it helps with all of your problems.

There might be other specific options, or as a last resort you might have to use home.file.<name>.force.

1 Like