diff --git a/modules/programs/nomad/default.nix b/modules/programs/nomad/default.nix index 681afd9..50ec43a 100644 --- a/modules/programs/nomad/default.nix +++ b/modules/programs/nomad/default.nix @@ -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 = {