mirror of
https://github.com/ivabus/nixos
synced 2024-11-24 01:15:06 +03:00
roles: Add airplay-server role (pkg + open ports)
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
59f4b1ad16
commit
a6bdd96a86
2 changed files with 13 additions and 0 deletions
12
roles/airplay-server.nix
Normal file
12
roles/airplay-server.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let cfg = config.my.roles.airplay-server;
|
||||
in {
|
||||
options.my.roles.airplay-server.enable =
|
||||
lib.mkEnableOption "Enable uxplay and open ports";
|
||||
config = lib.mkIf (cfg.enable) {
|
||||
environment.systemPackages = with pkgs; [ uxplay ];
|
||||
networking.firewall.allowedUDPPorts = [ 6000 6001 7011 ];
|
||||
networking.firewall.allowedTCPPorts = [ 7000 7001 7100 ];
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./airplay-server.nix
|
||||
./design.nix
|
||||
./devel.nix
|
||||
./gaming.nix
|
||||
|
|
Loading…
Reference in a new issue