diff --git a/nixos/modules/services/databases/opentsdb.nix b/nixos/modules/services/databases/opentsdb.nix index dce2d193641..fc037b58c0e 100644 --- a/nixos/modules/services/databases/opentsdb.nix +++ b/nixos/modules/services/databases/opentsdb.nix @@ -74,6 +74,11 @@ in { environment.JAVA_HOME = "${pkgs.jre}"; path = [ pkgs.gnuplot ]; + preStart = + '' + COMPRESSION=NONE HBASE_HOME=${config.services.hbase.package} ${cfg.package}/share/opentsdb/tools/create_table.sh + ''; + serviceConfig = { PermissionsStartOnly = true; User = cfg.user;