summaryrefslogtreecommitdiff
path: root/nix/modules/icecast.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/icecast.nix')
-rw-r--r--nix/modules/icecast.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nix/modules/icecast.nix b/nix/modules/icecast.nix
new file mode 100644
index 0000000..0cef018
--- /dev/null
+++ b/nix/modules/icecast.nix
@@ -0,0 +1,21 @@
+{ lib, config, ... }:
+{
+ services.icecast = {
+ enable = lib.mkDefault config.monorepo.profiles.server.enable;
+ listen.address = "0.0.0.0";
+ extraConfig = ''
+<mount type="default">
+ <public>0</public>
+ <intro>/stream.m3u</intro>
+ <max-listener-duration>3600</max-listener-duration>
+ <authentication type="url">
+ <option name="mount_add" value="http://auth.example.org/stream_start.php"/>
+ </authentication>
+ <http-headers>
+ <header name="foo" value="bar" />
+ </http-headers>
+</mount>
+'';
+ };
+ admin.password = "changeme";
+}