summary refs log tree commit diff
path: root/nixos/modules/services/search/elasticsearch.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 15:12:11 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-28 22:45:56 +0100
commita40583e7e4eec305a08839df246455b0211dd7d1 (patch)
treef0d6c65ff78d15b79c87a5e489085c06b0addc0d /nixos/modules/services/search/elasticsearch.nix
parent1408ac51a4e516e4a435369691121580186a2e4e (diff)
downloadnixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.tar
nixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.tar.gz
nixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.tar.bz2
nixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.tar.lz
nixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.tar.xz
nixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.tar.zst
nixpkgs-a40583e7e4eec305a08839df246455b0211dd7d1.zip
Fix bogus mkOption types
Among others, systemd unit options were not being type-checked because
of this.  mkOption should really check its arguments better...
Diffstat (limited to 'nixos/modules/services/search/elasticsearch.nix')
-rw-r--r--nixos/modules/services/search/elasticsearch.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/services/search/elasticsearch.nix b/nixos/modules/services/search/elasticsearch.nix
index 3c27c1400f9..e6a2437902c 100644
--- a/nixos/modules/services/search/elasticsearch.nix
+++ b/nixos/modules/services/search/elasticsearch.nix
@@ -29,31 +29,31 @@ in {
     host = mkOption {
       description = "Elasticsearch listen address";
       default = "127.0.0.1";
-      types = type.uniq types.string;
+      type = types.uniq types.string;
     };
 
     port = mkOption {
       description = "Elasticsearch port to listen for HTTP traffic";
       default = "9200";
-      types = type.uniq types.string;
+      type = types.uniq types.string;
     };
 
     tcp_port = mkOption {
       description = "Elasticsearch port for the node to node communication";
       default = "9300";
-      types = type.uniq types.string;
+      type = types.uniq types.string;
     };
 
     cluster_name = mkOption {
       description = "Elasticsearch name that identifies your cluster for auto-discovery";
       default = "elasticsearch";
-      types = type.uniq types.string;
+      type = types.uniq types.string;
     };
 
     extraConf = mkOption {
       description = "Extra configuration for elasticsearch";
       default = "";
-      types = type.uniq types.string;
+      type = types.uniq types.string;
       example = ''
         node.name: "elasticsearch"
         node.master: true
@@ -77,7 +77,7 @@ in {
               type: consolePattern
               conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
       '';
-      types = type.uniq types.string;
+      type = types.uniq types.string;
     };
   };