The solution we arrived at in Configure how xdg-open opens html files? was:
environment.etc."xdg/mimeapps.list" = {
text = ''
[Default Applications]
mime/type=foo.desktop;
'';
};
What is the advantage of adding this as an explicit nix feature? (honest question, I’m not trying to downplay your work, just trying to understand what it solves)