This repository has no description
815 B
30 lines
1{ config, lib, 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 = [ 1704 1705 1780 ];
29 networking.firewall.interfaces.retiolum.allowedTCPPorts = [ 1780 ];
30}