feat: add uxplay (airplay)

This commit is contained in:
DACHXY 2025-07-16 22:22:34 +08:00
parent ac770b6531
commit a99b4ad2e7
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ pkgs, ... }:
{
networking.firewall = {
allowedTCPPorts = [
7000
7001
7100
];
allowedUDPPorts = [
5353
6000
6001
7011
];
};
environment.systemPackages = with pkgs; [
uxplay
];
systemd.user.services.uxplay = {
serviceConfig = {
ExecStart = "${pkgs.uxplay}/bin/uxplay -p";
};
};
services.avahi = {
enable = true;
openFirewall = true;
nssmdns4 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
userServices = true;
domain = true;
};
};
}