From f5e671befb9898384a09c0cd9194d6baa0adf718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 4 Dec 2022 07:30:23 +0100 Subject: [PATCH] Do not generate jobs for tftproot if it is known to fail --- flake.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 4a35cbd7..b21ff503 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ); };