feat: add uxplay (airplay)
This commit is contained in:
parent
ac770b6531
commit
a99b4ad2e7
3 changed files with 41 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ map (dev: dev // modulesConfig) [
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"wlr/taskbar"
|
"wlr/taskbar"
|
||||||
"temperature"
|
"temperature"
|
||||||
|
"custom/wallRand"
|
||||||
"custom/wireguard"
|
"custom/wireguard"
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
"network"
|
"network"
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
../../modules/virtualization.nix
|
../../modules/virtualization.nix
|
||||||
../../modules/wine.nix
|
../../modules/wine.nix
|
||||||
../../modules/wireguard.nix
|
../../modules/wireguard.nix
|
||||||
|
../../modules/airplay.nix
|
||||||
# ../../modules/battery-life.nix
|
# ../../modules/battery-life.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
39
system/modules/airplay.nix
Normal file
39
system/modules/airplay.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue