mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
device issues
This commit is contained in:
1 parent
b2c3e75171
commit
9c3f671acf
2 files changed
+55
No files matched your search
@@ -0,0 +1,44 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.net-uxplay =
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
uxplay = pkgs.uxplay.override {
|
||||
avahi = pkgs.avahi.override { withLibdnssdCompat = true; };
|
||||
};
|
||||
uxplay-fixed-ports = pkgs.symlinkJoin {
|
||||
name = "uxplay-fixed-ports";
|
||||
paths = [ uxplay ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/uxplay --add-flags "-p"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ uxplay-fixed-ports ];
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
7000
|
||||
7001
|
||||
7100
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
6000
|
||||
6001
|
||||
7011
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user