2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-09-05 09:21:41 +00:00
|
|
|
{ system ? builtins.currentSystem, ... }:
|
2020-05-09 10:14:07 +00:00
|
|
|
let
|
2021-09-05 09:21:41 +00:00
|
|
|
depot = (import ./default.nix { inherit system; });
|
2020-05-09 10:14:07 +00:00
|
|
|
pkgs = depot.third_party.nixpkgs;
|
|
|
|
lib = pkgs.lib;
|
|
|
|
prefixAttrs = prefix: lib.mapAttrsToList (name: value: { name = "${prefix}-${name}"; path = value; });
|
2020-10-04 00:07:59 +00:00
|
|
|
|
2021-09-05 09:08:28 +00:00
|
|
|
ciBits = rec {
|
2021-04-09 18:24:44 +00:00
|
|
|
x86_64-linux = {
|
|
|
|
machine = depot.ops.nixos.systems;
|
2022-05-13 22:47:45 +00:00
|
|
|
pkgs = builtins.removeAttrs depot.nix.pkgs [ "grafana-plugins" "windows" "unifiHacked" "nixpkgs-mozilla" "nightlyRust" "nightlyRustPlatform" "baserow" "baserow-oss" "authentik" ];
|
2021-12-21 00:18:16 +00:00
|
|
|
pkg-baserow = {
|
2022-11-02 02:08:52 +00:00
|
|
|
inherit (depot.nix.pkgs.baserow) backend web-frontend;
|
2021-12-21 00:18:16 +00:00
|
|
|
};
|
2021-12-21 21:58:23 +00:00
|
|
|
pkg-baserow-oss = {
|
2022-11-02 02:08:52 +00:00
|
|
|
inherit (depot.nix.pkgs.baserow-oss) backend web-frontend;
|
2021-12-21 21:58:23 +00:00
|
|
|
};
|
2022-05-13 22:47:45 +00:00
|
|
|
pkg-authentik = {
|
|
|
|
inherit (depot.nix.pkgs.authentik) docs webui pythonapp goserver server;
|
|
|
|
};
|
2021-04-09 18:24:44 +00:00
|
|
|
pkg-grafana-plugins = depot.nix.pkgs.grafana-plugins;
|
2021-09-25 20:58:39 +00:00
|
|
|
web = lib.filterAttrs (n: v: !lib.isFunction v) depot.web;
|
2021-11-18 22:24:20 +00:00
|
|
|
trains = depot.go.trains.cmd.bins;
|
2021-04-09 18:24:44 +00:00
|
|
|
other = {
|
|
|
|
twitterchiver-archiver = depot.go.twitterchiver.archiver;
|
|
|
|
twitterchiver-archiver-docker = depot.go.twitterchiver.archiver.dockerImage;
|
|
|
|
twitternuke = depot.go.twitternuke;
|
|
|
|
systemPathJSON = depot.ops.nixos.systemPathJSON;
|
2022-10-09 15:57:21 +00:00
|
|
|
inherit (depot.go.nix) bcachegc bcacheup;
|
2021-04-09 18:24:44 +00:00
|
|
|
};
|
2022-02-05 17:17:39 +00:00
|
|
|
factorio = depot.ops.factorio;
|
2022-02-27 19:32:48 +00:00
|
|
|
home-manager = depot.ops.home-manager-ext.built;
|
2021-04-09 18:24:44 +00:00
|
|
|
};
|
2022-04-13 12:03:56 +00:00
|
|
|
aarch64-linux = builtins.removeAttrs x86_64-linux [ "home-manager" ] // {
|
2023-01-17 23:57:35 +00:00
|
|
|
pkgs = builtins.removeAttrs x86_64-linux.pkgs [ "lutris" "plex-pass" ];
|
2022-04-13 12:03:56 +00:00
|
|
|
|
|
|
|
};
|
2021-04-09 18:24:44 +00:00
|
|
|
x86_64-darwin = {
|
2022-12-04 22:07:07 +00:00
|
|
|
home-manager = {
|
|
|
|
inherit (depot.ops.home-manager-ext.built) base client;
|
|
|
|
};
|
2021-04-09 18:24:44 +00:00
|
|
|
};
|
2021-09-05 09:08:28 +00:00
|
|
|
aarch64-darwin = x86_64-darwin;
|
2023-01-17 23:51:04 +00:00
|
|
|
}.${system};
|
2020-05-09 10:14:07 +00:00
|
|
|
in
|
2021-04-09 18:24:44 +00:00
|
|
|
pkgs.linkFarm "ci" (builtins.concatLists (lib.mapAttrsToList prefixAttrs ciBits))
|