mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
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.
45 lines
1001 B
Nix
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;
|
|
};
|
|
};
|
|
}
|