diff --git a/common/server/icecast.nix b/common/server/icecast.nix
index 9344282..657f8d0 100644
--- a/common/server/icecast.nix
+++ b/common/server/icecast.nix
@@ -11,29 +11,31 @@ in {
};
config = lib.mkIf cfg.enable {
- listen.address = "127.0.0.1";
- admin.password = "hackme";
- extraConf = ''
-
- hackme
-
-
-
-
-
- /${cfg.mount}
- 20
- 65536
- false
- false
-
- '';
- };
- services.nginx.virtualHosts.${cfg.hostname} = {
- enableACME = true;
- forceSSL = true;
- locations."/${cfg.mount}" = {
- proxyPass = "http://localhost:${toString cfg.listen.port}/${cfg.mount}";
+ services.icecast = {
+ listen.address = "127.0.0.1";
+ admin.password = "hackme";
+ extraConf = ''
+
+ hackme
+
+
+
+
+
+ /${cfg.mount}
+ 20
+ 65536
+ false
+ false
+
+ '';
+ };
+ services.nginx.virtualHosts.${cfg.hostname} = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/${cfg.mount}" = {
+ proxyPass = "http://localhost:${toString cfg.listen.port}/${cfg.mount}";
+ };
};
};
}