2024-10-15 17:46:44 -04:00
|
|
|
{ pkgs, config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-10-07 11:42:34 -04:00
|
|
|
imports = [
|
|
|
|
./nginx
|
2024-10-29 01:07:07 -04:00
|
|
|
./liquidsoap
|
2024-10-07 11:42:34 -04:00
|
|
|
];
|
|
|
|
|
2024-10-29 01:07:07 -04:00
|
|
|
services.icecast = {
|
|
|
|
enable = true;
|
|
|
|
listen.port = 265;
|
|
|
|
hostname = "icecast.${config.domains.jim1}";
|
|
|
|
admin = {
|
|
|
|
user = "jimbo";
|
|
|
|
password = "${config.secrets.castAdminPass}";
|
2024-08-26 20:45:07 -04:00
|
|
|
};
|
2024-10-29 01:07:07 -04:00
|
|
|
extraConf = ''
|
|
|
|
<authentication>
|
|
|
|
<source-password>${config.secrets.castSourcePass}</source-password>
|
|
|
|
</authentication>
|
|
|
|
|
|
|
|
<location>Canada</location>
|
|
|
|
<admin>jimbo@${config.domains.jim2}</admin>
|
|
|
|
|
|
|
|
<mount type="normal">
|
|
|
|
<mount-name>/jimbops.opus</mount-name>
|
|
|
|
<stream-name>JimBops Radio</stream-name>
|
|
|
|
<stream-description>Music gathered by me, Jimbo.</stream-description>
|
|
|
|
<stream-url>https://icecast.jimbosfiles.com/jimbops.opus</stream-url>
|
|
|
|
<genre>Anything</genre>
|
|
|
|
<type>application/ogg</type>
|
|
|
|
<subtype>vorbis</subtype>
|
|
|
|
</mount>
|
2024-11-04 22:41:38 -05:00
|
|
|
|
|
|
|
<mount type="normal">
|
|
|
|
<mount-name>/jimscrap.opus</mount-name>
|
|
|
|
<stream-name>Jimbo's Scrap</stream-name>
|
|
|
|
<stream-description>Music canned from the main radio.</stream-description>
|
|
|
|
<stream-url>https://icecast.jimbosfiles.com/jimscrap.opus</stream-url>
|
|
|
|
<genre>Scrapped</genre>
|
|
|
|
<type>application/ogg</type>
|
|
|
|
<subtype>vorbis</subtype>
|
|
|
|
</mount>
|
2024-10-29 01:07:07 -04:00
|
|
|
'';
|
2024-08-26 20:45:07 -04:00
|
|
|
};
|
|
|
|
}
|