empyrean: add icecast server

This commit is contained in:
Jaculabilis 2025-04-06 22:31:34 +00:00
parent f533f23fd4
commit 87564d589f
2 changed files with 31 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#./amanuensis.nix #./amanuensis.nix
./catacomb.nix ./catacomb.nix
./gitea.nix ./gitea.nix
./icecast.nix
./sync-pipeline.nix ./sync-pipeline.nix
]; ];

View File

@ -0,0 +1,30 @@
{
...
}:
let
icecast-nix = builtins.fetchGit {
url = "https://github.com/Jaculabilis/icecast.nix.git";
ref = "master";
rev = "fcdff3d46e6aad6328eae19e482bebe224a6be29";
};
in
{
imports = [ "${icecast-nix}/module.nix" ];
services.icecast = {
enable = true;
listen.address = "10.22.20.1";
listen.port = 8688;
secretsFile = "/etc/icecast";
extraConf = ''
<location>empyrean</location>
<admin>tvb</admin>
<authentication>
<source-password>@@SOURCE_PASSWORD@@</source-password>
</authentication>
'';
};
networking.firewall.allowedTCPPorts = [ 8688 ];
}