nixos/hadoop: fix HBase

Changed files
+3 -1
nixos
modules
services
cluster
hadoop
+3 -1
nixos/modules/services/cluster/hadoop/hbase.nix
···
systemd.services."hbase-${lib.toLower name}" = {
description = "HBase ${name}";
wantedBy = [ "multi-user.target" ];
-
path = with cfg; [ hbase.package ] ++ optional (with cfg.hbase.master; enable && initHDFS) package;
+
path =
+
with cfg;
+
[ hbase.package ] ++ lib.optional (with cfg.hbase.master; enable && initHDFS) package;
preStart = lib.mkIf (with cfg.hbase.master; enable && initHDFS) (
lib.concatStringsSep "\n" (
map (x: "HADOOP_USER_NAME=hdfs hdfs --config /etc/hadoop-conf ${x}") [