flake: Restructure hydraJobs output

This commit is contained in:
Mikael 2024-09-03 20:52:05 +02:00
parent 18fa2e6c65
commit fa519d94ff
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -129,14 +129,17 @@
|> lib.filterAttrs (name: shell: lib.meta.availableOn platform shell)); |> lib.filterAttrs (name: shell: lib.meta.availableOn platform shell));
hydraJobs = { hydraJobs = {
package = self.packages; package = self.packages
shell = self.devShells; |> lib.foldlAttrs (jobs: system: packages: lib.recursiveUpdate jobs
(lib.mapAttrs (name: package: { ${system} = package; }) packages)) { };
shell = self.devShells
|> lib.foldlAttrs (jobs: system: shells: lib.recursiveUpdate jobs
(lib.mapAttrs (name: shell: { ${system} = shell; }) shells)) { };
nixos = self.nixosConfigurations nixos = self.nixosConfigurations
|> lib.concatMapAttrs (name: host: { |> lib.mapAttrs (name: host: {
${host.pkgs.system} = { ${host.pkgs.system} = host.config.system.build.toplevel;
${name} = host.config.system.build.toplevel;
};
}); });
}; };
}; };