diff --git a/nixos/modules/services/networking/nomad.nix b/nixos/modules/services/networking/nomad.nix index 04f15fe1366..b58b5c9182c 100644 --- a/nixos/modules/services/networking/nomad.nix +++ b/nixos/modules/services/networking/nomad.nix @@ -66,6 +66,19 @@ in description = '' Configuration for Nomad. See the documentation for supported values. + + Notes about `data_dir`: + + If `data_dir` is set to a value other than the default value of + `"/var/lib/nomad"` it is the Nomad cluster manager's responsibility + to make sure that this directory exist and has the appropriate + permissions. One way to do this is with the `ExecStartPre` feature of + systemd. + + Additionally, if `dropPrivileges` is `true` then `data_dir` + **cannot** be customized. Setting `dropPrivileges` to `true` enables + the `DynamicUser` feature of systemd which directly manages and + operates on `StateDirectory`. ''; example = literalExample '' {