From 7239536cba0546c5e4f1479a0fad906947a43225 Mon Sep 17 00:00:00 2001 From: Nathan Regner Date: Mon, 16 Dec 2024 14:11:09 -0700 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! wip: switch from hydra --- flake.nix | 54 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/flake.nix b/flake.nix index f503b4ec..b07db8a2 100644 --- a/flake.nix +++ b/flake.nix @@ -355,33 +355,35 @@ ); }; - githubActions.matrix = - lib.concatLists ( - lib.mapAttrsToList ( - name: - { system, profiles, ... }: + githubActions.matrix = { + job = + lib.concatLists ( lib.mapAttrsToList ( - profile: - { path, ... }: - { - inherit system; - attr = "deploy.nodes.${name}.profiles.${profile}.path"; - # attrs = builtins.map (profile: "deploy.nodes.${name}.profiles.${profile}.path") ( - # builtins.attrNames profiles - # ); - } - ) profiles - ) deploy.nodes - ) - ++ builtins.map - (system: { - inherit system; - attr = "devShells.${system}._aggregate"; - }) - [ - "x86_64-linux" - "aarch64-darwin" - ]; + name: + { system, profiles, ... }: + lib.mapAttrsToList ( + profile: + { path, ... }: + { + inherit system; + attr = "deploy.nodes.${name}.profiles.${profile}.path"; + # attrs = builtins.map (profile: "deploy.nodes.${name}.profiles.${profile}.path") ( + # builtins.attrNames profiles + # ); + } + ) profiles + ) deploy.nodes + ) + ++ builtins.map + (system: { + inherit system; + attr = "devShells.${system}._aggregate"; + }) + [ + "x86_64-linux" + "aarch64-darwin" + ]; + }; }; }; }