elasticsearch
Options
services.elasticsearch.enable
Whether to enable elasticsearch.
Type: boolean
Default:
false
Declared by:
services.elasticsearch.package
Elasticsearch package to use.
Type: package
Default:
pkgs.elasticsearch7
Declared by:
services.elasticsearch.cluster_name
Elasticsearch name that identifies your cluster for auto-discovery.
Type: string
Default:
"elasticsearch"
Declared by:
services.elasticsearch.extraCmdLineOptions
Extra command line options for the elasticsearch launcher.
Type: list of string
Default:
[ ]
Declared by:
services.elasticsearch.extraConf
Extra configuration for elasticsearch.
Type: string
Default:
""
Example:
'' node.name: "elasticsearch" node.master: true node.data: false''
Declared by:
services.elasticsearch.extraJavaOptions
Extra command line options for Java.
Type: list of string
Default:
[ ]
Example:
[ "-Djava.net.preferIPv4Stack=true"]
Declared by:
services.elasticsearch.listenAddress
Elasticsearch listen address.
Type: string
Default:
"127.0.0.1"
Declared by:
services.elasticsearch.logging
Elasticsearch logging configuration.
Type: string
Default:
'' logger.action.name = org.elasticsearch.action logger.action.level = info appender.console.type = Console appender.console.name = console appender.console.layout.type = PatternLayout appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n rootLogger.level = info rootLogger.appenderRef.console.ref = console''
Declared by:
services.elasticsearch.plugins
Extra elasticsearch plugins
Type: list of package
Default:
[ ]
Example:
[ pkgs.elasticsearchPlugins.discovery-ec2 ]
Declared by:
services.elasticsearch.port
Elasticsearch port to listen for HTTP traffic.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
9200
Declared by:
services.elasticsearch.single_node
Start a single-node cluster
Type: boolean
Default:
true
Declared by:
services.elasticsearch.tcp_port
Elasticsearch port for the node to node communication.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
9300
Declared by:
Last updated Oct 08, 2026