diff options
Diffstat (limited to 'pkgs/run-firecracker-vm/default.nix')
| -rw-r--r-- | pkgs/run-firecracker-vm/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/run-firecracker-vm/default.nix b/pkgs/run-firecracker-vm/default.nix index a0aae13..855b43c 100644 --- a/pkgs/run-firecracker-vm/default.nix +++ b/pkgs/run-firecracker-vm/default.nix @@ -49,6 +49,10 @@ let lowerdirs = lib.genList (k: "/nix/.image/${toString k}") (n + 1) ++ [ "/nix/.host-store" ]; in import (pkgs.path + "/nixos") { inherit (pkgs.stdenv.hostPlatform) system; + # The host's pkgs, for layers whose imports need packages, like a + # module from a source fetched with fetchFromGitHub: the guest's pkgs + # depend on the modules, so imports can't use them. + specialArgs.hostPkgs = pkgs; configuration = { config, modulesPath, ... }: { imports = [ (modulesPath + "/profiles/minimal.nix") |
