nixos/murmur: Use lib.mkEnableOption where possible

While on it, replace occurrences of "Murmur" with "Mumble server" of
touched options.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Felix Singer 2025-05-31 17:05:20 +02:00 committed by Bjørn Forsman
parent 6a824c3b3b
commit 1c9df5c6de

View file

@ -60,19 +60,9 @@ in
options = { options = {
services.murmur = { services.murmur = {
enable = mkOption { enable = lib.mkEnableOption "Mumble server";
type = types.bool;
default = false;
description = "If enabled, start the Murmur Mumble server.";
};
openFirewall = mkOption { openFirewall = lib.mkEnableOption "opening ports in the firewall for the Mumble server";
type = types.bool;
default = false;
description = ''
Open ports in the firewall for the Murmur Mumble server.
'';
};
user = mkOption { user = mkOption {
type = types.str; type = types.str;
@ -203,14 +193,7 @@ in
''; '';
}; };
bonjour = mkOption { bonjour = lib.mkEnableOption "Bonjour auto-discovery, which allows clients over your LAN to automatically discover Mumble servers";
type = types.bool;
default = false;
description = ''
Enable Bonjour auto-discovery, which allows clients over
your LAN to automatically discover Murmur servers.
'';
};
sendVersion = mkOption { sendVersion = mkOption {
type = types.bool; type = types.bool;
@ -255,11 +238,7 @@ in
''; '';
}; };
clientCertRequired = mkOption { clientCertRequired = lib.mkEnableOption "requiring clients to authenticate via certificates";
type = types.bool;
default = false;
description = "Require clients to authenticate via certificates.";
};
sslCert = mkOption { sslCert = mkOption {
type = types.str; type = types.str;