This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

configs.snapserver: move from styx to acheron

+21 -20
+1 -1
configs/gg23.nix
··· 69 69 }; 70 70 } 71 71 { 72 - # styx (et0), ex-router: snapserver, mycelium peer 72 + # styx (et0), ex-router: mycelium peer 73 73 dhcpServerStaticLeaseConfig = { 74 74 Address = "10.42.0.3"; 75 75 MACAddress = "3c:7c:3f:7e:e2:39";
+1 -1
configs/snapclient.nix
··· 3 3 systemd.services.snapclient = { 4 4 wantedBy = [ "multi-user.target" ]; 5 5 path = [ pkgs.snapcast ]; 6 - script = "snapclient -h 10.42.0.3 --hostID ${config.networking.hostName}"; 6 + script = "snapclient -h 10.42.0.1 --hostID ${config.networking.hostName}"; 7 7 serviceConfig = { 8 8 DynamicUser = true; 9 9 Group = "pipewire";
+18 -5
configs/snapserver.nix
··· 22 22 tcp.enable = true; 23 23 }; 24 24 25 - networking.firewall.interfaces.et0.allowedTCPPorts = [ 26 - 1704 27 - 1705 28 - 1780 29 - ]; 25 + # Runs on the gg23 router: the LAN (int0) is trusted there 26 + # (configs/gg23.nix), et0 is the WAN and stays closed. 30 27 networking.firewall.interfaces.retiolum.allowedTCPPorts = [ 1780 ]; 28 + 29 + # plays an iptv channel into the "styx" pipe stream 30 + environment.systemPackages = [ 31 + (pkgs.writers.writeDashBin "iptv" '' 32 + set -efu 33 + ${pkgs.mpv}/bin/mpv \ 34 + --audio-display=no --audio-channels=stereo \ 35 + --audio-samplerate=48000 --audio-format=s16 \ 36 + --ao-pcm-file=/run/snapserver/snapfifo --ao=pcm \ 37 + --audio-delay=-1 \ 38 + --playlist=https://iptv-org.github.io/iptv/index.nsfw.m3u \ 39 + --idle=yes \ 40 + --input-ipc-server=/tmp/mpv.ipc \ 41 + "$@" 42 + '') 43 + ]; 31 44 }
+1
machines/acheron/config.nix
··· 9 9 ../../configs/retiolum.nix 10 10 ../../configs/gg23.nix 11 11 ../../configs/hass 12 + ../../configs/snapserver.nix 12 13 ]; 13 14 14 15 services.earlyoom.enable = true;
-13
machines/styx/config.nix
··· 13 13 ../../configs/green-host.nix 14 14 ../../configs/syncthing.nix 15 15 ../../configs/ppp/umts-stick.nix 16 - ../../configs/snapserver.nix 17 16 ../../configs/snapclient.nix 18 17 ../../configs/consul.nix 19 18 ]; ··· 22 21 wol 23 22 (writers.writeDashBin "wake-alien" '' 24 23 ${wol}/bin/wol -h 10.42.0.255 10:65:30:68:83:a3 25 - '') 26 - (writers.writeDashBin "iptv" '' 27 - set -efu 28 - /run/current-system/sw/bin/mpv \ 29 - --audio-display=no --audio-channels=stereo \ 30 - --audio-samplerate=48000 --audio-format=s16 \ 31 - --ao-pcm-file=/run/snapserver/snapfifo --ao=pcm \ 32 - --audio-delay=-1 \ 33 - --playlist=https://iptv-org.github.io/iptv/index.nsfw.m3u \ 34 - --idle=yes \ 35 - --input-ipc-server=/tmp/mpv.ipc \ 36 - "$@" 37 24 '') 38 25 ]; 39 26