summaryrefslogtreecommitdiff
path: root/flora/services/murmur.nix
blob: 0b928166fe6a80cfee39d3a50fbc9fc0cefbfcd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:

{
  services.murmur = {
    enable = true;
    logDays = -1;
    welcometext = "";
    sslKey = "/var/lib/acme/meow.noms.ing/key.pem";
    sslCert = "/var/lib/acme/meow.noms.ing/fullchain.pem";
    bandwidth = 128000;
  };

  # the mumble cert has its own group so that both nginx and murmur can read it
  users.groups.mumblecert = { };
  security.acme.certs."meow.noms.ing" = {
    group = "mumblecert";
    reloadServices = [ "murmur" ];
  };
  users.users.nginx.extraGroups = [ "mumblecert" ];
  users.users.murmur.extraGroups = [ "mumblecert" ];

  networking.firewall.allowedTCPPorts = [ config.services.murmur.port ];
  networking.firewall.allowedUDPPorts = [ config.services.murmur.port ];
}