summaryrefslogtreecommitdiff
path: root/dev/ci.nix
diff options
context:
space:
mode:
Diffstat (limited to 'dev/ci.nix')
-rw-r--r--dev/ci.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/dev/ci.nix b/dev/ci.nix
index 2d5f583..e33c088 100644
--- a/dev/ci.nix
+++ b/dev/ci.nix
@@ -10,11 +10,19 @@
mapCfgsToDerivs = lib.mapAttrs (_: cfg: cfg.activationPackage or cfg.config.system.build.toplevel);
getCompatibleCfgs = lib.filterAttrs (_: cfg: lib.elem cfg.pkgs.system ciSystems);
- getConfigurations = type: mapCfgsToDerivs (getCompatibleCfgs self."${type}Configurations");
in
- {
- checks = getOutputs self.checks;
- devShells = getOutputs self.devShells;
- }
- // lib.genAttrs ["nixos" "home"] getConfigurations;
+ builtins.foldl' lib.recursiveUpdate {} [
+ (
+ lib.genAttrs
+ ["nixosConfigurations" "homeConfigurations"]
+ (
+ type: mapCfgsToDerivs (getCompatibleCfgs self."${type}")
+ )
+ )
+ (
+ lib.genAttrs
+ ["checks" "devShells"]
+ (type: getOutputs self.${type})
+ )
+ ];
}