haccfiles/services/murmur.nix

29 lines
1,008 B
Nix
Raw Permalink Normal View History

{ config, lib, pkgs, ... }:
2020-11-27 20:56:20 +00:00
{
2021-08-07 13:14:15 +00:00
hexchen.bindmounts."/var/lib/murmur" = "/persist/var/lib/murmur";
2020-11-27 20:56:20 +00:00
services.murmur = {
2020-12-27 10:17:38 +00:00
enable = true;
2020-11-27 20:56:20 +00:00
logDays = -1;
welcometext =
"Welcome to mumble4future! Brought to you by infra4future. The server is now reachable under mumble.hacc.space, please update your bookmarks.";
2020-11-27 20:56:20 +00:00
sslKey = "/var/lib/acme/mumble.hacc.space/key.pem";
sslCert = "/var/lib/acme/mumble.hacc.space/fullchain.pem";
bandwidth = 128000;
2020-11-27 20:56:20 +00:00
};
networking.firewall.allowedTCPPorts = [ config.services.murmur.port ];
networking.firewall.allowedUDPPorts = [ config.services.murmur.port ];
# the mumble cert has its own group so that both nginx and murmur can read it
users.groups.mumblecert = { };
security.acme.certs."mumble.hacc.space" = {
group = "mumblecert";
extraDomainNames = [ "mumble.infra4future.de" ];
reloadServices = [ "murmur" ];
};
users.users.nginx.extraGroups = [ "mumblecert" ];
users.users.murmur.extraGroups = [ "mumblecert" ];
2020-11-27 20:56:20 +00:00
}