NixOS-Config/modules/system/services/server/icecast/liquidsoap/jimbops/default.nix

31 lines
976 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
{
2024-11-13 04:13:54 -05:00
services.liquidsoap.streams.jimbops = pkgs.writeText "liquidstream1" ''
settings.log.stdout.set(true)
settings.init.allow_root.set(true)
settings.scheduler.fast_queues.set(2)
jimbops = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/JimboNFS/Music/JimBops"))
jimbops_fallback = fallback([jimbops, jimbops])
output.icecast(
%ffmpeg(format="ogg", %audio(codec="libvorbis", samplerate=48000, b="256k", channels=2)),
host="127.0.0.1",
port=265,
password="${config.secrets.castSourcePass}",
encoding = "UTF-8",
2024-11-13 04:13:54 -05:00
radio="JimBops Radio",
genre = "Anything",
description="Music gathered by me, Jimbo.",
website="https://icecast.${config.domains.jim1}",
url="https://icecast.${config.domains.jim1}/jimbops.opus",
mount="jimbops.opus",
icy_metadata=["artist", "title"],
public=true,
2024-11-13 04:13:54 -05:00
jimbops_fallback
)
'';
}