flake: Restructure hydraJobs output
This commit is contained in:
parent
18fa2e6c65
commit
fa519d94ff
1 changed files with 10 additions and 7 deletions
17
flake.nix
17
flake.nix
|
@ -129,15 +129,18 @@
|
||||||
|> 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;
|
});
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue