treewide: add bool type to enable options, or make use of mkEnableOption
Add missing type information to manually specified enable options or replace them by mkEnableOption where appropriate.
This commit is contained in:
@@ -11,10 +11,7 @@ with lib;
|
||||
|
||||
services.clickhouse = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "Whether to enable ClickHouse database server.";
|
||||
};
|
||||
enable = mkEnableOption "ClickHouse database server";
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -40,12 +40,7 @@ in
|
||||
|
||||
services.firebird = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable the Firebird super server.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "the Firebird super server";
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.firebirdSuper;
|
||||
|
||||
@@ -18,12 +18,7 @@ in
|
||||
|
||||
services.memcached = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "
|
||||
Whether to enable Memcached.
|
||||
";
|
||||
};
|
||||
enable = mkEnableOption "Memcached";
|
||||
|
||||
user = mkOption {
|
||||
default = "memcached";
|
||||
|
||||
@@ -29,12 +29,7 @@ in
|
||||
|
||||
services.mongodb = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "
|
||||
Whether to enable the MongoDB server.
|
||||
";
|
||||
};
|
||||
enable = mkEnableOption "the MongoDB server";
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.mongodb;
|
||||
|
||||
@@ -13,10 +13,7 @@ with lib;
|
||||
|
||||
services.virtuoso = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "Whether to enable Virtuoso Opensource database server.";
|
||||
};
|
||||
enable = mkEnableOption "Virtuoso Opensource database server";
|
||||
|
||||
config = mkOption {
|
||||
default = "";
|
||||
|
||||
Reference in New Issue
Block a user