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

@ -108,6 +108,7 @@ map (dev: dev // modulesConfig) [
modules-right = [
"wlr/taskbar"
"temperature"
"custom/wallRand"
"custom/wireguard"
"idle_inhibitor"
"network"

View file

@ -12,6 +12,7 @@
../../modules/virtualization.nix
../../modules/wine.nix
../../modules/wireguard.nix
../../modules/airplay.nix
# ../../modules/battery-life.nix
];

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;
};
};
}