Not restarting home-manager service when rebuilding
I have home-manager as a nixos module and noticed that when I rebuild I have to manually restart the sops-nix service, I would like to request that you make the home-manager module do this by itself.
Does home-manager restart services these days? I am only aware of it proposing services to be restarted.
It seems that home-manager can restart services based on a diff - so if something changed in the file. If one needs to use something like systemd.user.services.restartTriggers in home-manager it can be done via X-SwitchMethod in the [Unit] section.
See related home-manager issue / question: https://github.com/nix-community/home-manager/issues/3865
Since sops-nix has a home-manager module which uses systemd user services it would be more consistent to also handle a restart of the service.
See duplicate issue #478 with a longer discussion and a work-around using config in home.nix.
Closing as the workaround was added in the README in this commit.