I recently wanted to switch homepage-dashboard to use port 80, so it could be the “homepage” of my nuc. It turned out to be more difficult to figure out than I thought, as the services.homepage-dashboard module has it’s systemd service configured in such a way that using privileged ports is not possible.
After spending time digging through systemd docs, I eventually found that I could make it work by overriding:
systemd.services.homepage-dashboard.serviceConfig.AmbientCapabilities =
lib.mkForce "CAP_NET_BIND_SERVICE";
systemd.services.homepage-dashboard.serviceConfig.CapabilityBoundingSet =
lib.mkForce "CAP_NET_BIND_SERVICE";
systemd.services.homepage-dashboard.serviceConfig.PrivateUsers = lib.mkForce false;
Is this the correct solution or am I missing something easier?
Is it worth opening a github issue to request this change?