blob: 6f47da1573684636bba55b4a58274b46962496a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
lib,
self,
...
}: {
flake.hydraJobs = let
ciSystems = ["x86_64-linux"];
getOutputs = lib.getAttrs ciSystems;
in
lib.attrsets.mergeAttrsList [
{
checks = getOutputs self.checks;
devShells = getOutputs self.devShells;
homeConfigurations = lib.mapAttrs (_: v:
lib.mapAttrs (_: v: v.activationPackage) v.homeConfigurations)
(getOutputs self.legacyPackages);
}
(
let
toDerivs = lib.mapAttrs (_: configuration: configuration.config.system.build.toplevel);
toCompatible = lib.filterAttrs (_: configuration: lib.elem configuration.pkgs.system ciSystems);
getConfigurationsFor = type: toDerivs (toCompatible self.${type});
in {
nixosConfigurations = getConfigurationsFor "nixosConfigurations";
}
)
];
}
|