diff options
| author | seth <[email protected]> | 2024-02-03 19:27:26 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-03 20:47:55 -0500 |
| commit | fcc60b84e5e3cc44986d40af63f5de488caae909 (patch) | |
| tree | 45f4455c7dcbc63e59e62a9af79783e2e5509a2e /dev | |
| parent | de003fa28e56b81a33e831099987cd94d2f53b39 (diff) | |
make everything a module
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}) + ) + ]; } |
