nixos/modules/server/services/mumble.nix

30 lines
740 B
Nix
Raw Normal View History

2025-01-12 13:36:22 +04:00
{ config, lib, ... }:
with lib;
let cfg = config.void.server.services.mumble;
in {
options.void.server.services.mumble = { enable = mkEnableOption false; };
config = mkIf cfg.enable {
services = {
murmur = {
enable = true;
2025-01-12 15:38:21 +04:00
port = 56734;
2025-01-12 13:36:22 +04:00
openFirewall = true;
2025-01-12 13:37:16 +04:00
welcometext = "sako.lol!";
2025-01-12 13:36:22 +04:00
sslKey = "/var/lib/acme/mumble.sako.lol/key.pem";
2025-01-12 14:25:21 +04:00
sslCert = "/var/lib/acme/mumble.sako.lol/fullchain.pem";
2025-01-12 13:36:22 +04:00
bandwidth = 72000;
clientCertRequired = true;
};
};
security.acme.certs."mumble.sako.lol" = {
2025-01-12 14:25:21 +04:00
group = config.services.murmur.group;
2025-01-12 13:37:41 +04:00
credentialsFile = "/srv/secrets/porkbun";
dnsProvider = "porkbun";
webroot = null;
2025-01-12 13:36:22 +04:00
};
};
}