diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/ci.nix | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -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}) + ) + ]; } |
