feat: provide wrapped packages

This commit is contained in:
Kat Inskip 2024-10-25 13:35:27 -04:00
parent fb9e62db99
commit 845afbeaf5
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
12 changed files with 77 additions and 29 deletions

View file

@ -7,18 +7,6 @@
}:
with lib; let
inherit (channels.std) string list set;
enabledNixosSystems = filterAttrs (_: system: system.config.ci.enable && system.config.type == "NixOS") channels.nixfiles.systems;
exportsSystems = let
warnSystems = set.filter (_: system: system.config.ci.allowFailure) enabledNixosSystems;
toSystems = systems: string.concatMapSep " " string.escapeShellArg (set.keys systems);
in ''
NF_NIX_SYSTEMS=(${toSystems enabledNixosSystems})
NF_NIX_SYSTEMS_WARN=(${toSystems warnSystems})
'';
buildAllSystems = pkgs.writeShellScriptBin "build-systems" ''
${exportsSystems}
nix run .#nf-actions-test
'';
in {
imports = [./common.nix];
config = {