From 5b5bd56b52ab3125d54503f9bbc0f3a65ee20df7 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 7 Dec 2025 15:41:42 -0600 Subject: [PATCH] Limit build targets --- checks.nix | 4 +++- pkgs/default.nix | 13 ++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/checks.nix b/checks.nix index 17620c0..5964db0 100644 --- a/checks.nix +++ b/checks.nix @@ -38,5 +38,7 @@ }; }; } -// (builtins.mapAttrs (_n: v: v.config.system.build.toplevel) top.self.nixosConfigurations) +// (builtins.mapAttrs (_n: v: v.config.system.build.toplevel) ( + lib.filterAttrs (_n: v: v.pkgs.stdenv.hostPlatform.system == system) top.self.nixosConfigurations +)) // (top.self.packages.${system}) diff --git a/pkgs/default.nix b/pkgs/default.nix index 0c359e0..11e29c2 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -18,7 +18,14 @@ in qemu-hook = c ./qemu-hook.nix { }; setup-ssh = c ./setup-ssh { }; upgrade-pg-cluster = c ./upgrade-pg-cluster.nix { }; - vfio_startup = c ./vfio_startup.nix { }; - vfio_shutdown = c ./vfio_shutdown.nix { }; - zim = c ./zim.nix { }; } +// ( + if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then + { + vfio_startup = c ./vfio_startup.nix { }; + vfio_shutdown = c ./vfio_shutdown.nix { }; + zim = c ./zim.nix { }; + } + else + { } +)