diff --git a/configuration.nix b/configuration.nix index 99c6eb7..387328c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -293,6 +293,20 @@ }; }; + # Auto-start UxPlay with the graphical session so iOS Screen Mirroring + # can find this host without manually launching it. + systemd.user.services.uxplay = { + description = "UxPlay AirPlay Mirror Receiver"; + partOf = [ "graphical-session.target" ]; + after = [ "graphical-session.target" "pipewire.service" ]; + wantedBy = [ "graphical-session.target" ]; + serviceConfig = { + ExecStart = "${pkgs.uxplay}/bin/uxplay"; + Restart = "on-failure"; + RestartSec = 5; + }; + }; + security.pam.services = { login.u2fAuth = true; sudo.u2fAuth = true;