fix ghidra-server statedirectory

This commit is contained in:
xenia 2024-04-23 15:22:28 -04:00
parent c9ad12be20
commit 0fbe08a251
2 changed files with 11 additions and 4 deletions

View File

@ -77,9 +77,10 @@ the server hostname or IP; this is typically required (by java RMI) for correct
the server will use 3 consecutive TCP ports starting from this port
#### services.ghidra-server.directory (`/var/lib/ghidra-server`)
#### services.ghidra-server.directory (`ghidra-server`)
the root directory for server files
the root directory for server files, as a subdirectory of `/var/lib`. this is needed because this
option is passed to systemd `StateDirectory=`
#### services.ghidra-server.{user,group} (`ghidra`)
@ -95,6 +96,10 @@ the service user and group
a variant of ghidra built with a headless openjdk, intended to reduce closure size for server
operation
### `ocamlPackages.xlog`
logging for cats, in ocaml: <https://git.lain.faith/haskal/xlog>
## lib documentation
### `fetchFromSteam`

View File

@ -24,8 +24,10 @@ in {
type = types.port;
};
directory = mkOption {
default = "/var/lib/ghidra-server";
description = "Directory for Ghidra server data.";
default = "ghidra-server";
description = ''
Directory for Ghidra server data, under `/var/lib` (for systemd `StateDirectory`)
'';
type = types.str;
};
user = mkOption {