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