NixOS-Config/nixos/server/icecast.nix
2024-08-26 20:45:07 -04:00

25 lines
538 B
Nix

let
secrets = import ../modules/secrets.nix;
in {
# Icecast, replacing Azuracast maybe
services = {
icecast = {
enable = true;
listen.port = 265;
hostname = "icecast.${secrets.jimDomain}";
admin = {
user = "jimbo";
password = "${secrets.castPass}";
};
};
nginx.virtualHosts."icecast.${secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:265";
proxyWebsockets = true;
};
};
};
}