empyrean: add icecast server
This commit is contained in:
parent
f533f23fd4
commit
87564d589f
@ -11,6 +11,7 @@
|
|||||||
#./amanuensis.nix
|
#./amanuensis.nix
|
||||||
./catacomb.nix
|
./catacomb.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
./icecast.nix
|
||||||
./sync-pipeline.nix
|
./sync-pipeline.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
30
machine/empyrean/icecast.nix
Normal file
30
machine/empyrean/icecast.nix
Normal 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 ];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user