From ee2fa1e5f1ecae49c316d1c182933e884a737f9f Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Mon, 30 Mar 2026 15:44:00 +0200 Subject: [PATCH] =?UTF-8?q?feat(nixos):=20add=20UxPlay=20systemd=20service?= =?UTF-8?q?=20on=20sunken-ship=20=F0=9F=94=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Audio-only AirPlay receiver that starts at boot, advertises as "sunken-ship", and auto-restarts on failure. --- nixos/hosts/sunken-ship.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nixos/hosts/sunken-ship.nix b/nixos/hosts/sunken-ship.nix index 5ddb99b..c9b982a 100644 --- a/nixos/hosts/sunken-ship.nix +++ b/nixos/hosts/sunken-ship.nix @@ -77,6 +77,20 @@ in allowedUDPPorts = [ 5353 6000 6001 7011 ]; }; + # UxPlay AirPlay receiver — audio-only, runs as a persistent service. + systemd.services.uxplay = { + description = "UxPlay AirPlay receiver"; + after = [ "network-online.target" "avahi-daemon.service" ]; + wants = [ "network-online.target" "avahi-daemon.service" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + ExecStart = "${pkgs.uxplay}/bin/uxplay -n sunken-ship -p -vs 0"; + Restart = "on-failure"; + RestartSec = 5; + User = "danny"; + }; + }; + # Pull dotfiles and rebuild if the repo has new commits. systemd.services.dotfiles-rebuild = { description = "Pull dotfiles and run nixos-rebuild if repo changed";