From 8e1199c8170968b0561c3bb9bd05cdc6135a15eb Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 06:30:28 +0100 Subject: run-firecracker-vm: pass host's pkgs --- pkgs/run-firecracker-vm/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs') 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") -- cgit v1.3.1