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;