diff --git a/ci-root.nix b/ci-root.nix index e7c7cc7cf3..d1e615de63 100644 --- a/ci-root.nix +++ b/ci-root.nix @@ -7,16 +7,23 @@ let pkgs = depot.third_party.nixpkgs; lib = pkgs.lib; prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; }); - ciMachines = prefixAttrs "machine" depot.ops.nixos.systems; - ciPackages = prefixAttrs "pkg" (builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" ]); - ciGrafanaPlugins = prefixAttrs "pkg-grafana-plugins" depot.nix.pkgs.grafana-plugins; - ciWeb = prefixAttrs "web" depot.web; - ciOther = prefixAttrs "other" { - twitterchiver-archiver = depot.go.twitterchiver.archiver; - twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage; - twitternuke = depot.go.twitternuke; - systemPathJSON = depot.ops.nixos.systemPathJSON; + ciBits = { + x86_64-linux = { + machine = depot.ops.nixos.systems; + pkgs = builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" ]; + pkg-grafana-plugins = depot.nix.pkgs.grafana-plugins; + web = depot.web; + other = { + twitterchiver-archiver = depot.go.twitterchiver.archiver; + twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage; + twitternuke = depot.go.twitternuke; + systemPathJSON = depot.ops.nixos.systemPathJSON; + }; + }; + x86_64-darwin = { + home-manager = depot.ops.home-manager-ext.built; + }; }; in -pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciGrafanaPlugins ++ ciWeb ++ ciOther) +pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))