diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ci.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ci.nix b/lib/ci.nix new file mode 100644 index 0000000..7a01e39 --- /dev/null +++ b/lib/ci.nix @@ -0,0 +1,6 @@ +{lib, ...}: ciSystems: { + getOutputs = lib.getAttrs ciSystems; + + mapCfgsToDerivs = lib.mapAttrs (_: cfg: cfg.activationPackage or cfg.config.system.build.toplevel); + getCompatibleCfgs = lib.filterAttrs (_: cfg: lib.elem cfg.pkgs.system ciSystems); +} |
