flake: Avoid indirection through checks output
This commit is contained in:
parent
edcf0a5f04
commit
39b1c13c5b
1 changed files with 10 additions and 13 deletions
23
flake.nix
23
flake.nix
|
@ -124,19 +124,16 @@
|
||||||
|> lib.mapAttrs (name: shell: self.legacyPackages.${system}.callPackage shell { })
|
|> lib.mapAttrs (name: shell: self.legacyPackages.${system}.callPackage shell { })
|
||||||
|> lib.filterAttrs (name: shell: lib.meta.availableOn { inherit system; } shell));
|
|> lib.filterAttrs (name: shell: lib.meta.availableOn { inherit system; } shell));
|
||||||
|
|
||||||
checks = eachFlakeSystem (system: {
|
hydraJobs = {
|
||||||
packages = self.packages.${system};
|
package = self.packages;
|
||||||
devShells = self.devShells.${system};
|
shell = self.devShells;
|
||||||
}) // (self.nixosConfigurations
|
|
||||||
|> lib.mapAttrsToList (name: host: {
|
|
||||||
${host.pkgs.system} = {
|
|
||||||
nixos = {
|
|
||||||
${name} = host.config.system.build.toplevel;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|> lib.mergeAttrsList);
|
|
||||||
|
|
||||||
hydraJobs = { inherit (self) checks; };
|
nixos = self.nixosConfigurations
|
||||||
|
|> lib.concatMapAttrs (host: config: {
|
||||||
|
${config.pkgs.system} = {
|
||||||
|
${host} = config.system.build.toplevel;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue