2023-09-10 08:22:33 +00:00
|
|
|
{
|
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
|
2023-09-10 09:16:51 +00:00
|
|
|
outputs = inputs@{ self, flake-parts, ... }:
|
2023-09-10 08:22:33 +00:00
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, ... }: {
|
2023-09-10 10:11:50 +00:00
|
|
|
systems = [ "x86_64-linux" ];
|
2023-09-10 08:22:33 +00:00
|
|
|
flake = {
|
|
|
|
nixosModules.buildbot-master = ./nix/master.nix;
|
|
|
|
nixosModules.buildbot-worker = ./nix/worker.nix;
|
2023-09-10 09:16:51 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2023-09-10 08:22:33 +00:00
|
|
|
};
|
2023-09-10 09:16:51 +00:00
|
|
|
perSystem = { pkgs, system, ... }: {
|
2023-09-10 08:22:33 +00:00
|
|
|
packages.default = pkgs.mkShell {
|
|
|
|
packages = [
|
|
|
|
pkgs.bashInteractive
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|