36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
# https://github.com/Mic92/buildbot-nix
|
|
description = "A nixos module to make buildbot a proper Nix-CI.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
};
|
|
|
|
outputs = inputs@{ self, flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, ... }: {
|
|
systems = lib.systems.flakeExposed;
|
|
flake = {
|
|
nixosModules.buildbot-master = ./nix/master.nix;
|
|
nixosModules.buildbot-worker = ./nix/worker.nix;
|
|
|
|
nixosConfigurations = import ./examples {
|
|
inherit (inputs) nixpkgs;
|
|
buildbot-nix = self;
|
|
system = "x86_64-linux";
|
|
};
|
|
checks.x86_64-linux = {
|
|
nixos-master = self.nixosConfigurations.example-master.config.system.build.toplevel;
|
|
nixos-worker = self.nixosConfigurations.example-worker.config.system.build.toplevel;
|
|
};
|
|
};
|
|
perSystem = { pkgs, system, ... }: {
|
|
packages.default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.bashInteractive
|
|
];
|
|
};
|
|
};
|
|
});
|
|
}
|