summaryrefslogtreecommitdiff
path: root/Biz
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-01-03 14:25:59 -0500
committerBen Sima <ben@bsima.me>2023-01-03 15:06:38 -0500
commit52fd37e2ac382a2630d3fe3d22ef86908d67a6b6 (patch)
treed866098af16bbea4e007f5867e21298a8866528a /Biz
parentad02b2b02da71f0a71c9dcc8bd595afec8e4bee7 (diff)
Add mumble and botamusique services
Diffstat (limited to 'Biz')
-rw-r--r--Biz/Cloud.nix1
-rw-r--r--Biz/Cloud/Mumble.nix28
-rw-r--r--Biz/Cloud/Ports.nix1
-rw-r--r--Biz/Cloud/Web.nix7
4 files changed, 37 insertions, 0 deletions
diff --git a/Biz/Cloud.nix b/Biz/Cloud.nix
index aaee217..d54ba85 100644
--- a/Biz/Cloud.nix
+++ b/Biz/Cloud.nix
@@ -12,6 +12,7 @@ bild.os {
./Cloud/Cgit.nix
./Cloud/Hardware.nix
./Cloud/Mail.nix
+ ./Cloud/Mumble.nix
./Cloud/Networking.nix
./Cloud/Web.nix
./Cloud/Znc.nix
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"