fix: add nix store as host volume for nomad
Signed-off-by: Chinmay D. Pai <chinmay.pai@zerodha.com>
This commit is contained in:
parent
89ad28e6db
commit
84912e2cfb
@ -4,7 +4,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
dropPrivileges = false;
|
dropPrivileges = false;
|
||||||
enableDocker = true;
|
enableDocker = true;
|
||||||
extraPackages = with pkgs; [cni-plugins cacert];
|
extraPackages = with pkgs; [cni-plugins] ++ stdenv.initialPath;
|
||||||
package = pkgs.nomad_1_6;
|
package = pkgs.nomad_1_6;
|
||||||
settings = {
|
settings = {
|
||||||
datacenter = "trench";
|
datacenter = "trench";
|
||||||
@ -46,6 +46,14 @@
|
|||||||
artifact = {
|
artifact = {
|
||||||
disable_filesystem_isolation = true;
|
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 = {
|
plugin."docker".config = {
|
||||||
|
Loading…
Reference in New Issue
Block a user