fix: add nix store as host volume for nomad

Signed-off-by: Chinmay D. Pai <chinmay.pai@zerodha.com>
This commit is contained in:
Chinmay D. Pai 2023-11-25 01:30:10 +05:30
parent 89ad28e6db
commit 84912e2cfb
Signed by: thunderbottom
GPG Key ID: 75507BE256F40CED

View File

@ -4,7 +4,7 @@
enable = true;
dropPrivileges = false;
enableDocker = true;
extraPackages = with pkgs; [cni-plugins cacert];
extraPackages = with pkgs; [cni-plugins] ++ stdenv.initialPath;
package = pkgs.nomad_1_6;
settings = {
datacenter = "trench";
@ -46,6 +46,14 @@
artifact = {
disable_filesystem_isolation = true;
};
# Required for `exec` driver deployments
# bind-mounts the nix store to resolve symlinks
host_volume = {
"nix" = {
path = "/nix";
read_only = true;
};
};
};
plugin."docker".config = {