From f4d7a86aa4c7c58120f93014c0a0816cec4d2e3f Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 18 Sep 2023 18:27:49 -0400 Subject: [PATCH] yuki: init neko --- hosts/yuki/services/default.nix | 1 + hosts/yuki/services/neko.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/yuki/services/neko.nix diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index aad648a..feb1cd0 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -7,5 +7,6 @@ ./homarr.nix ./dashdot.nix ./jellyfin.nix + ./neko.nix ]; } diff --git a/hosts/yuki/services/neko.nix b/hosts/yuki/services/neko.nix new file mode 100644 index 0000000..bdc81a6 --- /dev/null +++ b/hosts/yuki/services/neko.nix @@ -0,0 +1,20 @@ +_: { + networking.firewall.allowedTCPPorts = [8080]; + networking.firewall.allowedUDPPorts = [52000 52100]; + virtualisation.oci-containers.containers.neko = { + image = "m1k1o/neko:firefox"; + ports = [ + "8080:8080" + "52000-52100:52000-52100/udp" + ]; + environment = { + NEKO_SCREEN = "1920x1080@60"; + NEKO_PASSWORD = "forsen"; + NEKO_EPR = "52000-52100"; + NEKO_NAT1TO1 = "100.110.140.130"; + NEKO_BIND = "0.0.0.0:8080"; + NEKO_CONTROL_PROTECTION = "true"; + NEKO_VIDEO_CODEC = "h264"; + }; + }; +}