diff options
| author | Preston Pan <ret2pop@gmail.com> | 2025-03-21 04:52:46 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2025-03-21 04:52:46 -0700 |
| commit | 00c9e35779cbb298d6395a6e2c2534007a92976f (patch) | |
| tree | e5bfc2d375b331ba6b664ddf6152f51bfcc900df /nix/modules/icecast.nix | |
| parent | 2a4c959ef00fea785633afe44be0af77d6441a4b (diff) | |
add a ton of VPS upgrades; update website; live life
Diffstat (limited to 'nix/modules/icecast.nix')
| -rw-r--r-- | nix/modules/icecast.nix | 21 |
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"; +} |
