This repository has no description
0

Configure Feed

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

superconfig / 2configs / snapserver.nix
793 B 31 lines
1{ pkgs, ... }: 2{ 3 services.snapserver = { 4 enable = true; 5 # openFirewall = true; 6 settings.stream = { 7 source = [ 8 "process://${pkgs.writers.writeDash "radio" '' 9 exec ${pkgs.mpv}/bin/mpv http://radio.lassul.us/radio.ogg \ 10 --no-terminal \ 11 --audio-display=no \ 12 --audio-channels=stereo \ 13 --audio-samplerate=48000 \ 14 --audio-format=s16 \ 15 --ao=pcm \ 16 --ao-pcm-file=/dev/stdout 17 ''}?name=radio" 18 "pipe:///run/snapserver/snapfifo?name=styx" 19 ]; 20 }; 21 http.enable = true; 22 tcp.enable = true; 23 }; 24 25 networking.firewall.interfaces.et0.allowedTCPPorts = [ 26 1704 27 1705 28 1780 29 ]; 30 networking.firewall.interfaces.retiolum.allowedTCPPorts = [ 1780 ]; 31}