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

26 lines
533 B
Nix

{ pkgs, config, ... }:
{
imports = [
./nginx
./liquidsoap
];
services.icecast = {
enable = true;
listen.port = 265;
hostname = "icecast.${config.domains.jim1}";
admin = {
user = "jimbo";
password = "${config.secrets.castAdminPass}";
};
extraConf = ''
<authentication>
<source-password>${config.secrets.castSourcePass}</source-password>
</authentication>
<location>Canada</location>
<admin>contact@${config.domains.jim2}</admin>
'';
};
}