From dedc5d9ff870db02bac5379c3d5655bdd71f4cd8 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 22 Nov 2021 03:43:34 +0100 Subject: [PATCH] flake.nix: add kernels to hydraJobs --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 03c1f976..9fcbfc67 100644 --- a/flake.nix +++ b/flake.nix @@ -523,6 +523,15 @@ ) self.nixosConfigurations // self.packages.${system} + // + # make hydra prebuild all kernels + builtins.foldl' (result: hostName: + if self.nixosConfigurations.${hostName}.confi.boot.isContainer + then result + else result // { + "${hostName}-kernel" = self.nixosConfigurations.${hostName}.config.boot.kernelPackages.kernel; + } + ) {} (builtins.attrNames self.nixosConfigurations) ); }; }