diff --git a/hosts/kitty/hardware/default.nix b/hosts/kitty/hardware/default.nix index 275f7e3..d0e1617 100644 --- a/hosts/kitty/hardware/default.nix +++ b/hosts/kitty/hardware/default.nix @@ -20,7 +20,7 @@ }; swraid = { enable = true; - mdadmConf = "MAILADDR jimbo@${config.domains.jim2}"; + mdadmConf = "MAILADDR contact@${config.domains.jim2}"; }; }; diff --git a/modules/system/services/server/icecast/default.nix b/modules/system/services/server/icecast/default.nix index 8fd484f..29c7970 100644 --- a/modules/system/services/server/icecast/default.nix +++ b/modules/system/services/server/icecast/default.nix @@ -19,27 +19,7 @@ Canada - jimbo@${config.domains.jim2} - - - /jimbops.opus - JimBops Radio - Music gathered by me, Jimbo. - https://icecast.jimbosfiles.com/jimbops.opus - Anything - application/ogg - vorbis - - - - /jimscrap.opus - Jimbo's Scrap - Music canned from the main radio. - https://icecast.jimbosfiles.com/jimscrap.opus - Scrapped - application/ogg - vorbis - + contact@${config.domains.jim2} ''; }; } diff --git a/modules/system/services/server/icecast/liquidsoap/jimbops/default.nix b/modules/system/services/server/icecast/liquidsoap/jimbops/default.nix index 5b96751..f3a56cd 100644 --- a/modules/system/services/server/icecast/liquidsoap/jimbops/default.nix +++ b/modules/system/services/server/icecast/liquidsoap/jimbops/default.nix @@ -6,22 +6,25 @@ settings.init.allow_root.set(true) settings.scheduler.fast_queues.set(2) - # Define the source with random playlist jimbops = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/JimboNFS/Music/JimBops")) - - # Ensure the stream never stops jimbops_fallback = fallback([jimbops, jimbops]) - # Output configuration to Icecast 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}", - public=true, - icy_metadata=["artist", "title"], - mount="jimbops.opus", encoding = "UTF-8", + + 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, + jimbops_fallback ) ''; diff --git a/modules/system/services/server/icecast/liquidsoap/jimscrapped/default.nix b/modules/system/services/server/icecast/liquidsoap/jimscrapped/default.nix index cf0f6f3..b8540f0 100644 --- a/modules/system/services/server/icecast/liquidsoap/jimscrapped/default.nix +++ b/modules/system/services/server/icecast/liquidsoap/jimscrapped/default.nix @@ -1,28 +1,31 @@ { pkgs, config, ... }: { services.liquidsoap.streams = { - jimscrap = pkgs.writeText "liquidjim" '' + jimbops = pkgs.writeText "liquidjim" '' settings.log.stdout.set(true) settings.init.allow_root.set(true) settings.scheduler.fast_queues.set(2) - # Define the source with random playlist - jimscrap = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/JimboNFS/Music/JimScrapped")) + jimbops = mksafe(playlist(mode='randomize', reload=1, reload_mode="rounds", "/export/JimboNFS/Music/JimBops")) + jimbops_fallback = fallback([jimbops, jimbops]) - # Ensure the stream never stops - jimscrap_fallback = fallback([jimscrap, jimscrap]) - - # Output configuration to Icecast 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}", - public=true, - icy_metadata=["artist", "title"], - mount="jimscrap.opus", encoding = "UTF-8", - jimscrap_fallback + + radio="Jimbo's Scrap", + genre = "Scrapped", + description="Music canned from the main radio.", + website="https://icecast.${config.domains.jim1}", + url="https://icecast.${config.domains.jim1}/jimscrap.opus", + mount="jimscrap.opus", + icy_metadata=["artist", "title"], + public=true, + + jimbops_fallback ) ''; };