remove hydra jobs
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
a7e1266a9c
commit
b059813b8b
63
flake.nix
63
flake.nix
@ -350,68 +350,5 @@
|
|||||||
shellHook = (nix-pre-commit.lib.${system}.mkConfig { inherit pkgs config; }).shellHook;
|
shellHook = (nix-pre-commit.lib.${system}.mkConfig { inherit pkgs config; }).shellHook;
|
||||||
}
|
}
|
||||||
) sops-nix.packages;
|
) sops-nix.packages;
|
||||||
|
|
||||||
hydraJobs =
|
|
||||||
{
|
|
||||||
build = (
|
|
||||||
recursiveMerge (
|
|
||||||
(map (machine: {
|
|
||||||
${machine.pkgs.system} = (
|
|
||||||
builtins.listToAttrs (
|
|
||||||
builtins.filter (v: v != { }) (
|
|
||||||
map (
|
|
||||||
pkg:
|
|
||||||
(
|
|
||||||
if (builtins.hasAttr pkg.name pkgsBySystem.${machine.pkgs.system}) then
|
|
||||||
{
|
|
||||||
name = pkg.name;
|
|
||||||
value = pkgsBySystem.${machine.pkgs.system}.${pkg.name};
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{ }
|
|
||||||
)
|
|
||||||
) machine.config.environment.systemPackages
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}) (builtins.attrValues self.nixosConfigurations))
|
|
||||||
++ [ self.formatter ]
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
// lib.mapAttrs (__: lib.mapAttrs (_: lib.hydraJob)) (
|
|
||||||
let
|
|
||||||
mkBuild =
|
|
||||||
type:
|
|
||||||
let
|
|
||||||
getBuildEntryPoint = (
|
|
||||||
name: nixosSystem:
|
|
||||||
if builtins.hasAttr type nixosSystem.config.system.build then
|
|
||||||
let
|
|
||||||
cfg = nixosSystem.config.system.build.${type};
|
|
||||||
in
|
|
||||||
if nixosSystem.config.nixpkgs.system == "aarch64-linux" then
|
|
||||||
lib.recursiveUpdate cfg { meta.timeout = 24 * 60 * 60; }
|
|
||||||
else
|
|
||||||
cfg
|
|
||||||
else
|
|
||||||
{ }
|
|
||||||
);
|
|
||||||
in
|
|
||||||
lib.filterAttrs (n: v: v != { }) (builtins.mapAttrs getBuildEntryPoint self.nixosConfigurations);
|
|
||||||
in
|
|
||||||
builtins.listToAttrs (
|
|
||||||
map
|
|
||||||
(type: {
|
|
||||||
name = type;
|
|
||||||
value = mkBuild type;
|
|
||||||
})
|
|
||||||
[
|
|
||||||
"toplevel"
|
|
||||||
"isoImage"
|
|
||||||
"sdImage"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user