Only set Before=display-manager.service if it is actually present. On headless systems, `systemctl list-units --state not-found` will otherwise show display-manager.service. Reported-In: https://github.com/NixOS/nixpkgs/issues/88597