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
19
ci-root.nix
19
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" {
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue