flake: Avoid indirection through checks output

This commit is contained in:
Mikael 2024-08-24 14:06:47 +02:00
parent edcf0a5f04
commit 39b1c13c5b
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -124,19 +124,16 @@
|> lib.mapAttrs (name: shell: self.legacyPackages.${system}.callPackage shell { })
|> lib.filterAttrs (name: shell: lib.meta.availableOn { inherit system; } shell));
checks = eachFlakeSystem (system: {
packages = self.packages.${system};
devShells = self.devShells.${system};
}) // (self.nixosConfigurations
|> lib.mapAttrsToList (name: host: {
${host.pkgs.system} = {
nixos = {
${name} = host.config.system.build.toplevel;
};
};
})
|> lib.mergeAttrsList);
hydraJobs = {
package = self.packages;
shell = self.devShells;
hydraJobs = { inherit (self) checks; };
nixos = self.nixosConfigurations
|> lib.concatMapAttrs (host: config: {
${config.pkgs.system} = {
${host} = config.system.build.toplevel;
};
});
};
};
}