flake.nix: add kernels to hydraJobs

This commit is contained in:
Astro 2021-11-22 03:43:34 +01:00
parent 9dbbf590ed
commit dedc5d9ff8
1 changed files with 9 additions and 0 deletions

View File

@ -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)
);
};
}