diff options
author | happysalada <raphael@megzari.com> | 2021-09-01 15:51:33 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-09-02 10:57:02 +0900 |
commit | e13906fff009043e8982567ca6bc1a031b62f388 (patch) | |
tree | db2398f033d4538057dac9a0cbb10060d2ffb70b /nixos/modules/services/search | |
parent | 3b7fa8744ccb957ce20304f6b9ec68325671ae11 (diff) | |
download | nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.tar nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.tar.gz nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.tar.bz2 nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.tar.lz nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.tar.xz nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.tar.zst nixpkgs-e13906fff009043e8982567ca6bc1a031b62f388.zip |
elasticsearch: nixpkgs-fmt
Diffstat (limited to 'nixos/modules/services/search')
-rw-r--r-- | nixos/modules/services/search/elasticsearch.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/modules/services/search/elasticsearch.nix b/nixos/modules/services/search/elasticsearch.nix index 91d8f544e16..e78ed7e40d4 100644 --- a/nixos/modules/services/search/elasticsearch.nix +++ b/nixos/modules/services/search/elasticsearch.nix @@ -36,7 +36,8 @@ let postBuild = "${pkgs.coreutils}/bin/mkdir -p $out/plugins"; }; -in { +in +{ ###### interface @@ -116,20 +117,20 @@ in { extraCmdLineOptions = mkOption { description = "Extra command line options for the elasticsearch launcher."; - default = []; + default = [ ]; type = types.listOf types.str; }; extraJavaOptions = mkOption { description = "Extra command line options for Java."; - default = []; + default = [ ]; type = types.listOf types.str; example = [ "-Djava.net.preferIPv4Stack=true" ]; }; plugins = mkOption { description = "Extra elasticsearch plugins"; - default = []; + default = [ ]; type = types.listOf types.package; example = lib.literalExample "[ pkgs.elasticsearchPlugins.discovery-ec2 ]"; }; @@ -146,8 +147,8 @@ in { path = [ pkgs.inetutils ]; environment = { ES_HOME = cfg.dataDir; - ES_JAVA_OPTS = toString ( optional (!es6) [ "-Des.path.conf=${configDir}" ] - ++ cfg.extraJavaOptions); + ES_JAVA_OPTS = toString (optional (!es6) [ "-Des.path.conf=${configDir}" ] + ++ cfg.extraJavaOptions); } // optionalAttrs es6 { ES_PATH_CONF = configDir; }; |