ghidra-server: assert host != null

This commit is contained in:
xenia 2024-04-23 17:19:41 -04:00
parent f0fd21aafa
commit 087f7bcc94
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ in {
users.groups."${cfg.group}" = {};
systemd.services."ghidra-server" =
assert assertMsg (cfg.host != null) ''
services.ghidra-server.host cannot be null when services.ghidra-server.enable = true
'';
let
ghidra_log4j_config = ./custom.log4j.xml;
ghidra_java_opt = "-Dlog4j.configurationFile=${ghidra_log4j_config} -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=/tmp -Djna.tmpdir=/tmp -Dghidra.tls.server.protocols=TLSv1.2;TLSv1.3 -Ddb.buffers.DataBuffer.compressedOutput=true -Xms396m -Xmx768m";