mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
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:
parent
6a824c3b3b
commit
1c9df5c6de
1 changed files with 4 additions and 25 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue