Nix configurations for my homelab
1{ ... }:
2{
3 environment.persistence."/data/persistent".directories = [
4 {
5 directory = "/var/lib/murmur";
6 mode = "0700";
7 user = "murmur";
8 group = "murmur";
9 }
10 ];
11
12 networking.firewall = {
13 allowedTCPPorts = [ 64738 ];
14 allowedUDPPorts = [ 64738 ];
15 };
16
17 services.murmur = {
18 enable = true;
19 welcometext = ''
20 <br />Welcome to the <b>ButWho</b> Mumble server!<br />
21 '';
22 users = 15;
23 tls = {
24 certPath = "/var/ssl/mumble.butwho.org/mumble.butwho.org.crt";
25 keyPath = "/var/ssl/mumble.butwho.org/mumble.butwho.org.key";
26 };
27 extraConfig = ''
28 obfuscate=true
29 '';
30 clientCertRequired = true;
31 # This seems to be the current default for mumble according to the mumble-server.ini in their git repo
32 bandwidth = 558000;
33 };
34}