ci-root: tidy up, add x86_64-darwin support (that's not yet used)
This commit is contained in:
parent
c65e8b8a54
commit
19282ea93e
1 changed files with 17 additions and 10 deletions
27
ci-root.nix
27
ci-root.nix
|
@ -7,16 +7,23 @@ let
|
||||||
pkgs = depot.third_party.nixpkgs;
|
pkgs = depot.third_party.nixpkgs;
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; });
|
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" {
|
ciBits = {
|
||||||
twitterchiver-archiver = depot.go.twitterchiver.archiver;
|
x86_64-linux = {
|
||||||
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
machine = depot.ops.nixos.systems;
|
||||||
twitternuke = depot.go.twitternuke;
|
pkgs = builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" ];
|
||||||
systemPathJSON = depot.ops.nixos.systemPathJSON;
|
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
|
in
|
||||||
pkgs.linkFarm "ci" (ciMachines ++ ciPackages ++ ciGrafanaPlugins ++ ciWeb ++ ciOther)
|
pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))
|
||||||
|
|
Loading…
Reference in a new issue