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