···1212 ]
1313 ++ (lib.optional (cfg.initialJavaHeapSize != null) "-Xms${(toString cfg.initialJavaHeapSize)}m")
1414 ++ (lib.optional (cfg.maximumJavaHeapSize != null) "-Xmx${(toString cfg.maximumJavaHeapSize)}m")
1515+ ++ cfg.extraJvmOptions
1516 ++ [ "-jar" "${stateDir}/lib/ace.jar" ]);
1617in
1718{
···8283 description = lib.mdDoc ''
8384 Set the maximum heap size for the JVM in MB. If this option isn't set, the
8485 JVM will decide this value at runtime.
8686+ '';
8787+ };
8888+8989+ services.unifi.extraJvmOptions = lib.mkOption {
9090+ type = with lib.types; listOf str;
9191+ default = [ ];
9292+ example = lib.literalExpression ''["-Xlog:gc"]'';
9393+ description = lib.mdDoc ''
9494+ Set extra options to pass to the JVM.
8595 '';
8696 };
8797