[nix] add nixosConfigs as hydraJobs

This commit is contained in:
2024-03-04 15:41:15 +01:00
parent 3af945ceb2
commit a8350836f0
2 changed files with 16 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ in
];
};
lucia_sd-img = nixosSystem {
sdImageLucia = nixosSystem {
system = "aarch64-linux";
specialArgs.inputs = inputs;
modules = defaultModules ++ [

View File

@@ -25,6 +25,21 @@ in (utils.lib.eachSystem (builtins.filter filter_system utils.lib.defaultSystems
nixosModules.malobeo = import ./machines/durruti/host_config.nix;
hydraJobs = nixpkgs.lib.mapAttrs (_: nixpkgs.lib.hydraJob) (
let
getBuildEntry = name: nixosSystem:
if (nixpkgs.lib.hasPrefix "sdImage" name) then
nixosSystem.config.system.build.sdImage
else
nixosSystem.config.system.build.toplevel;
in
nixpkgs.lib.mapAttrs getBuildEntry self.nixosConfigurations
);
#lucia = self.nixosConfigurations.lucia.config.system.build.toplevel;
#images.lucia_base_image = nixosConfigurations.lucia.config.system.build.sdImage;
#packages.x86_64-linux = {