diff options
| author | seth <[email protected]> | 2024-02-02 16:13:17 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-02-02 19:22:07 -0500 |
| commit | 1e32ab22f3fc2a4959f90ded95d7318bd4e23623 (patch) | |
| tree | a38ddb5f3fe720bc140f6a10cd41fd820adb4a5f /dev/ci.nix | |
| parent | 9758b8236dcaafb958e6ef4f634d201af0bea80b (diff) | |
systems: use new configurations flakeModule
Diffstat (limited to 'dev/ci.nix')
| -rw-r--r-- | dev/ci.nix | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -7,17 +7,14 @@ ciSystems = ["x86_64-linux"]; 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); - in { - checks = getOutputs self.checks; - devShells = getOutputs self.devShells; - - homeConfigurations = let - legacyPackages = getOutputs self.legacyPackages; - in - lib.mapAttrs (_: v: mapCfgsToDerivs v.homeConfigurations) legacyPackages; - - nixosConfigurations = mapCfgsToDerivs (getCompatibleCfgs self.nixosConfigurations); - }; + getConfigurations = type: mapCfgsToDerivs (getCompatibleCfgs self."${type}Configurations"); + in + { + checks = getOutputs self.checks; + devShells = getOutputs self.devShells; + } + // lib.genAttrs ["nixos" "home"] getConfigurations; } |
