mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
28 lines
658 B
Nix
28 lines
658 B
Nix
{
|
|
lib,
|
|
config,
|
|
channels,
|
|
env,
|
|
...
|
|
}:
|
|
with lib; {
|
|
imports = [ ./common.nix ];
|
|
config = {
|
|
name = "nodes";
|
|
|
|
jobs = let
|
|
enabledSystems = filterAttrs (_: system: system.ci.enable) channels.nixfiles.lib.gensokyo-zone.systems;
|
|
mkSystemJob = name: system: nameValuePair "${name}" {
|
|
tasks.system = {
|
|
inputs = channels.nixfiles.nixosConfigurations.${name}.config.system.build.toplevel;
|
|
warn = system.ci.allowFailure;
|
|
};
|
|
};
|
|
systemJobs = mapAttrs' mkSystemJob enabledSystems;
|
|
in {
|
|
packages = { ... }: {
|
|
imports = [ ./packages.nix ];
|
|
};
|
|
} // systemJobs;
|
|
};
|
|
}
|