Fix building with Colmena.

Apply overlays and nixpkgs imports once
Do not set hostPlatform explicitly, set it from the network.json file
This commit is contained in:
Greg Hellings
2025-12-22 15:27:36 -06:00
parent 264504050c
commit 856d4ec627
12 changed files with 58 additions and 43 deletions
+6 -2
View File
@@ -1,4 +1,8 @@
{ pkgs, ... }:
{
pkgs,
system ? pkgs.stdenv.hostPlatform.system,
...
}:
let
c = pkgs.callPackage;
@@ -19,7 +23,7 @@ in
upgrade-pg-cluster = c ./upgrade-pg-cluster.nix { };
}
// (
if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then
if system == "x86_64-linux" then
{
qemu-hook = c ./qemu-hook.nix { };
vfio_startup = c ./vfio_startup.nix { };