From bfe137645dc6f0ea3626a99c4d932a0b3eddf3b4 Mon Sep 17 00:00:00 2001
From: zuckerberg <5-zuckerberg@users.noreply.git.neet.dev>
Date: Mon, 7 Jun 2021 17:35:29 -0400
Subject: [PATCH] icecast fallback mount
---
common/server/icecast.nix | 19 ++++++++++++++-----
machines/nanachi/configuration.nix | 3 ++-
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/common/server/icecast.nix b/common/server/icecast.nix
index 830e5ae..0921877 100644
--- a/common/server/icecast.nix
+++ b/common/server/icecast.nix
@@ -13,6 +13,10 @@ in {
type = lib.types.str;
example = "stream.mp3";
};
+ fallback = lib.mkOption {
+ type = lib.types.str;
+ example = "fallback.mp3";
+ };
};
config = lib.mkIf cfg.enable {
@@ -23,16 +27,21 @@ in {
hackme
-
- 12800000
- 2560000
-
/${cfg.mount}
- 10
+ 30
+ 64000
+ false
+ false
+ /${cfg.fallback}
+ 1
+
+
+ /${cfg.fallback}
+ 30
64000
false
false
diff --git a/machines/nanachi/configuration.nix b/machines/nanachi/configuration.nix
index 0676edb..73f5b01 100644
--- a/machines/nanachi/configuration.nix
+++ b/machines/nanachi/configuration.nix
@@ -27,7 +27,8 @@
services.icecast = {
enable = true;
hostname = "nanachi.neet.dev";
- mount = "stream.webm";
+ mount = "stream.mp3";
+ fallback = "fallback.mp3";
};
security.acme.acceptTerms = true;