I think it's a common need/use-case if a (especially new user) would like to setup the desktop-environment with home-manager. I found this solution from @rycee which still works really fine but I thought if it is the best solution as the used option is internal for user-understanding and maintenance reasons.
So my Idea is to implement options in the NixOS-module system and in home-manager to delegate the handling to home-manager/run the home-manager xsession without the user have to maintain the necessary code. So in case something changes internal we could just update the options related code.
Before trying to make a PR I wanted to know your opinions on it? Did I missed something? :)
I think it's a common need/use-case if a (especially new user) would like to setup the desktop-environment with home-manager. I found this solution from @rycee which still works really fine but I thought if it is the best solution as the used option is internal for user-understanding and maintenance reasons.
So my Idea is to implement options in the NixOS-module system and in home-manager to delegate the handling to home-manager/run the home-manager xsession without the user have to maintain the necessary code. So in case something changes internal we could just update the options related code.
Before trying to make a PR I wanted to know your opinions on it? Did I missed something? :)