flake: Avoid indirection through checks output

This commit is contained in:
Mikael Voss 2024-08-24 14:06:47 +02:00
parent edcf0a5f04
commit 39b1c13c5b
No known key found for this signature in database

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