nixos/nomad: add assertion for the value of dropPrivileges and its relation to data_dir
This commit is contained in:
parent
5105bf4b2e
commit
3e00482ba8
@ -135,6 +135,13 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = cfg.dropPrivileges -> cfg.settings.data_dir == "/var/lib/nomad";
|
||||||
|
message = "settings.data_dir must be equal to \"/var/lib/nomad\" if dropPrivileges is true";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# Docker support requires the Docker daemon to be running.
|
# Docker support requires the Docker daemon to be running.
|
||||||
virtualisation.docker.enable = mkIf cfg.enableDocker true;
|
virtualisation.docker.enable = mkIf cfg.enableDocker true;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user