0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

treewide: use mkEnableOption in nixos modules

This commit is contained in:
Daniel Nagy 2022-11-09 22:45:00 +01:00
parent 095269c862
commit b4674b39c1
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671
31 changed files with 36 additions and 131 deletions

View file

@ -24,11 +24,7 @@ let
in {
options.services.zookeeper = {
enable = mkOption {
description = lib.mdDoc "Whether to enable Zookeeper.";
default = false;
type = types.bool;
};
enable = mkEnableOption (lib.mdDoc "Zookeeper");
port = mkOption {
description = lib.mdDoc "Zookeeper Client port.";