2024-06-02 12:41:23 +02:00
|
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Simon Bruder <simon@sbruder.de>
|
2024-01-06 01:19:35 +01:00
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
2022-03-23 18:07:16 +01:00
|
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
sops.secrets.murmur-superuser = {
|
|
|
|
|
owner = config.users.users.murmur.name;
|
|
|
|
|
sopsFile = ../secrets.yaml;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
users.users.murmur.isSystemUser = true; # Infinisil’s module does not set that
|
|
|
|
|
services.murmur = {
|
|
|
|
|
enable = true;
|
|
|
|
|
openFirewall = true;
|
|
|
|
|
superuserPasswordFile = config.sops.secrets.murmur-superuser.path;
|
|
|
|
|
acmeDomain = "mumble.sbruder.de";
|
|
|
|
|
config = {
|
|
|
|
|
bandwidth = "128000";
|
|
|
|
|
obfuscate = true;
|
|
|
|
|
logfile = ""; # log to stdout
|
|
|
|
|
|
2022-04-15 21:35:48 +02:00
|
|
|
|
username = ''[ \\-=\\w\\[\\]\\{\\}\\(\\)\\@\\|\\.]+'';
|
2022-03-23 18:07:16 +01:00
|
|
|
|
channelname = ''[ \\-=\\w\\#\\[\\]\\{\\}\\(\\)\\@\\|]+'';
|
|
|
|
|
};
|
|
|
|
|
};
|
2024-06-02 12:41:23 +02:00
|
|
|
|
# upstream (out-of-tree) does not define this, but nixpkgs wants (🥁) it
|
|
|
|
|
systemd.services.murmur.wants = [ "network-online.target" ];
|
2022-03-23 18:07:16 +01:00
|
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."mumble.sbruder.de" = {
|
|
|
|
|
enableACME = true;
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
};
|
|
|
|
|
}
|