aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-20 06:30:28 +0100
committertv <tv@krebsco.de>2026-11-20 06:30:28 +0100
commit8e1199c8170968b0561c3bb9bd05cdc6135a15eb (patch)
tree880ab94761ef9f8028c9dfed821550d3c1f9ca2f /pkgs
parent1d1e32b91fca92e32ab95474dcfdddf43bf03193 (diff)
run-firecracker-vm: pass host's pkgs
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/run-firecracker-vm/default.nix4
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")