Do not generate jobs for tftproot if it is known to fail

This commit is contained in:
Sandro - 2022-12-04 07:30:23 +01:00
parent e16bd28785
commit f5e671befb
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 4 deletions

View File

@ -511,7 +511,7 @@
"${host}-tftproot" =
if config.system.build ? tftproot
then config.system.build.tftproot
else throw "No tftproot for ${host}";
else lib.trace "No tftproot for ${host}" null;
}
) {} (builtins.attrNames self.nixosConfigurations)
) self.legacyPackages;
@ -1062,9 +1062,8 @@
then nixosSystem.config.microvm.declaredRunner
else nixosSystem.config.system.build.toplevel
) self.nixosConfigurations
//
nixos.lib.filterAttrs (name: _:
builtins.match ".+-tftproot" name != null
// nixos.lib.filterAttrs (name: attr:
(builtins.match ".+-tftproot" name != null && lib.isDerivation attr)
) self.packages.aarch64-linux
);
};