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;
|
||||
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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user