summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-03 19:27:26 -0500
committerseth <[email protected]>2024-02-03 20:47:55 -0500
commitfcc60b84e5e3cc44986d40af63f5de488caae909 (patch)
tree45f4455c7dcbc63e59e62a9af79783e2e5509a2e /dev
parentde003fa28e56b81a33e831099987cd94d2f53b39 (diff)
make everything a module
Diffstat (limited to 'dev')
-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})
+ )
+ ];
}