From e2b820aac0bb35fbabe524a187bbcd6b483da105 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Mon, 30 Mar 2026 15:38:27 +0200 Subject: [PATCH] =?UTF-8?q?feat(nixos):=20add=20UxPlay=20AirPlay=20receive?= =?UTF-8?q?r=20to=20sunken-ship=20=F0=9F=93=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable Avahi for mDNS discovery and open firewall ports for AirPlay mirroring (TCP 7000-7100, UDP 5353/6000-6001/7011). --- 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 5739d3f..5ddb99b 100644 --- a/nixos/hosts/sunken-ship.nix +++ b/nixos/hosts/sunken-ship.nix @@ -61,8 +61,22 @@ in environment.systemPackages = with pkgs; [ git # clone/bootstrap and dotfiles-rebuild timer brightnessctl # manual backlight; replaces removed `light` from nixpkgs + uxplay # AirPlay mirroring receiver ]; + # Avahi (mDNS) — required for AirPlay discovery. + services.avahi = { + enable = true; + nssmdns4 = true; + publish = { enable = true; userServices = true; }; + }; + + # Open firewall for AirPlay (mDNS + UxPlay default ports). + networking.firewall = { + allowedTCPPorts = [ 7000 7001 7100 ]; + allowedUDPPorts = [ 5353 6000 6001 7011 ]; + }; + # Pull dotfiles and rebuild if the repo has new commits. systemd.services.dotfiles-rebuild = { description = "Pull dotfiles and run nixos-rebuild if repo changed";