mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
treewide: use mkEnableOption
in nixos modules
This commit is contained in:
parent
095269c862
commit
b4674b39c1
31 changed files with 36 additions and 131 deletions
|
@ -68,13 +68,8 @@ in
|
|||
{
|
||||
options = {
|
||||
services.exhibitor = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
Whether to enable the exhibitor server.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption (lib.mdDoc "exhibitor server");
|
||||
|
||||
# See https://github.com/soabase/exhibitor/wiki/Running-Exhibitor for what these mean
|
||||
# General options for any type of config
|
||||
port = mkOption {
|
||||
|
|
|
@ -8,11 +8,7 @@ in
|
|||
|
||||
{
|
||||
options.services.gollum = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "Enable the Gollum service.";
|
||||
};
|
||||
enable = mkEnableOption (lib.mdDoc "Gollum service");
|
||||
|
||||
address = mkOption {
|
||||
type = types.str;
|
||||
|
|
|
@ -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.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue