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

26 lines
556 B
Nix

{ pkgs, config, ... }:
{
imports = [
./nginx
./liquidsoap
];
services.icecast = {
enable = config.system.server.enable;
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>
'';
};
}