From 52fd37e2ac382a2630d3fe3d22ef86908d67a6b6 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 3 Jan 2023 14:25:59 -0500 Subject: Add mumble and botamusique services --- Biz/Cloud/Mumble.nix | 28 ++++++++++++++++++++++++++++ Biz/Cloud/Ports.nix | 1 + Biz/Cloud/Web.nix | 7 +++++++ 3 files changed, 36 insertions(+) create mode 100644 Biz/Cloud/Mumble.nix (limited to 'Biz/Cloud') diff --git a/Biz/Cloud/Mumble.nix b/Biz/Cloud/Mumble.nix new file mode 100644 index 0000000..5176117 --- /dev/null +++ b/Biz/Cloud/Mumble.nix @@ -0,0 +1,28 @@ +{ config, pkgs, ... }: + +# mumble and related services +let + ports = import ./Ports.nix; +in { + services.murmur = { + enable = true; + openFirewall = true; + environmentFile = "/var/lib/murmur/murmurd.env"; + registerHostname = config.networking.domain; + registerName = config.networking.domain; + }; + + services.botamusique = { + enable = true; + settings = { + webinterface = { + enabled = true; + listening_addr = "127.0.0.1"; + listening_port = ports.botamusique; + }; + radio = { + lofi = "https://live.hunter.fm/lofi_high"; + }; + }; + }; +} diff --git a/Biz/Cloud/Ports.nix b/Biz/Cloud/Ports.nix index 3213271..8966fb4 100644 --- a/Biz/Cloud/Ports.nix +++ b/Biz/Cloud/Ports.nix @@ -1,6 +1,7 @@ { bensIp = "24.140.86.120"; # not a port, but it's convenient bitcoind = 8333; + botamusique = 8181; dandel-rovbur = 8080; delugeWeb = 8112; dns = 53; diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 373af96..5f4789a 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -195,6 +195,12 @@ in }; }; + "music.${rootDomain}" = { + forceSSL = true; + useACMEHost = rootDomain; + locations."/".proxyPass = "http://localhost:${toString ports.botamusique}"; + }; + "notebook.${rootDomain}" = { forceSSL = true; useACMEHost = rootDomain; @@ -224,6 +230,7 @@ in "dragons.dev" "nixpert.chat" ] ++ map (sub: "${sub}.${rootDomain}") [ + "music" "tv" "matrix" "chat" -- cgit v1.2.3