Files
Matt Sturgeon 97f048f640 ci: buildbot-nix → nixbot
Migrate flake outputs, config files, etc from buildbot-nix to nixbot.

This is not urgent, because nixbot falls back to buildbot-nix.toml when
nixbot.toml is missing.
2026-07-02 13:52:50 +00:00

45 lines
1001 B
Nix

{ lib, config, ... }:
let
inherit (lib)
types
;
in
{
perSystem = {
# per-system CI options
options.ci = {
nixbot = lib.mkOption {
type = types.lazyAttrsOf types.raw;
default = { };
description = ''
A set of tests for [nixbot] to run.
[nixbot]: https://nixbot.nix-community.org/repos/github/nix-community/nixvim
'';
};
};
};
flake = {
# top-level CI option
#
# NOTE:
# This must be an actual option, NOT a set of options.
# Otherwise, flake partitions will not be lazy.
options.ci = lib.mkOption {
type = types.lazyAttrsOf (types.lazyAttrsOf types.raw);
default = { };
description = ''
Outputs related to CI.
Usually defined via the `perSystem.ci` options.
'';
};
# Transpose per-system definitions to the top-level
config.ci = {
nixbot = builtins.mapAttrs (_: sysCfg: sysCfg.ci.nixbot) config.allSystems;
};
};
}