diff --git a/README.md b/README.md index 7b6a5b3..8fd1c74 100644 --- a/README.md +++ b/README.md @@ -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: + ## lib documentation ### `fetchFromSteam` diff --git a/modules/ghidra-server/default.nix b/modules/ghidra-server/default.nix index d97b075..b161762 100644 --- a/modules/ghidra-server/default.nix +++ b/modules/ghidra-server/default.nix @@ -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 {