flake.nix: let hydraJobs build the whole microvm-runner if defined

This commit is contained in:
Astro 2022-06-17 01:42:10 +02:00
parent ab9d2680c4
commit 8f6e6e767a
1 changed files with 3 additions and 1 deletions

View File

@ -683,7 +683,9 @@
hydraJobs =
builtins.mapAttrs (_: nixpkgs.lib.hydraJob) (
builtins.mapAttrs (_: nixosSystem:
nixosSystem.config.system.build.toplevel
if nixosSystem.config ? microvm.declaredRunner
then nixosSystem.config.microvm.declaredRunner
else nixosSystem.config.system.build.toplevel
) self.nixosConfigurations
//
nixpkgs.lib.filterAttrs (name: _: