Skip to content

Commit 1c9df5c

Browse files
felixsingerbjornfor
authored andcommitted
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 <[email protected]>
1 parent 6a824c3 commit 1c9df5c

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

nixos/modules/services/networking/murmur.nix

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,9 @@ in
6060

6161
options = {
6262
services.murmur = {
63-
enable = mkOption {
64-
type = types.bool;
65-
default = false;
66-
description = "If enabled, start the Murmur Mumble server.";
67-
};
63+
enable = lib.mkEnableOption "Mumble server";
6864

69-
openFirewall = mkOption {
70-
type = types.bool;
71-
default = false;
72-
description = ''
73-
Open ports in the firewall for the Murmur Mumble server.
74-
'';
75-
};
65+
openFirewall = lib.mkEnableOption "opening ports in the firewall for the Mumble server";
7666

7767
user = mkOption {
7868
type = types.str;
@@ -203,14 +193,7 @@ in
203193
'';
204194
};
205195

206-
bonjour = mkOption {
207-
type = types.bool;
208-
default = false;
209-
description = ''
210-
Enable Bonjour auto-discovery, which allows clients over
211-
your LAN to automatically discover Murmur servers.
212-
'';
213-
};
196+
bonjour = lib.mkEnableOption "Bonjour auto-discovery, which allows clients over your LAN to automatically discover Mumble servers";
214197

215198
sendVersion = mkOption {
216199
type = types.bool;
@@ -255,11 +238,7 @@ in
255238
'';
256239
};
257240

258-
clientCertRequired = mkOption {
259-
type = types.bool;
260-
default = false;
261-
description = "Require clients to authenticate via certificates.";
262-
};
241+
clientCertRequired = lib.mkEnableOption "requiring clients to authenticate via certificates";
263242

264243
sslCert = mkOption {
265244
type = types.str;

0 commit comments

Comments
 (0)