mumble init
This commit is contained in:
parent
94442b47b8
commit
5283841da4
29
modules/server/services/mumble.nix
Normal file
29
modules/server/services/mumble.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ 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;
|
||||
port = 64738;
|
||||
openFirewall = true;
|
||||
welcomeText = "sako.lol!";
|
||||
sslKey = "/var/lib/acme/mumble.sako.lol/key.pem";
|
||||
sslCert = "/var/lib/acme/mumbe.sako.lol/fullchain.pem";
|
||||
bandwidth = 72000;
|
||||
clientCertRequired = true;
|
||||
};
|
||||
};
|
||||
|
||||
security.acme.certs."mumble.sako.lol" = {
|
||||
group = config.services.murmur.group;
|
||||
defaults.credentialsFile = "/srv/secrets/porkbun";
|
||||
defaults.dnsProvider = "porkbun";
|
||||
defaults.webroot = null;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue