This repository has no description
0

Configure Feed

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

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