Skyler Grey
198b4dff20
All checks were successful
buildbot/nix-eval Build done.
For a while we've been lacking a CI, which has led to problems such as an inability to enforce REUSE, as well as an inability to build and deploy docs-site automatically Buildbot is commonly used (nix-community, lix, etc.), and very extensible, which we hope will benefit us over something like Hydra or Typhon The buildbot instance is available at https://builds.auxolotl.org
80 lines
2 KiB
Nix
80 lines
2 KiB
Nix
# SPDX-FileCopyrightText: 2024 Auxolotl Infrastructure Contributors
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
{
|
|
description = "Auxolotl infrastructure.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
snowfall-lib = {
|
|
url = "github:snowfallorg/lib/dev";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
agenix-rekey = {
|
|
url = "github:oddlama/agenix-rekey";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
auxolotl-website = {
|
|
url = "git+https://git.auxolotl.org/auxolotl/website";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
buildbot-nix.url = "github:nix-community/buildbot-nix";
|
|
# Do not override nixpkgs in buildbot-nix (see https://github.com/nix-community/buildbot-nix)
|
|
|
|
deploy-rs = {
|
|
url = "github:serokell/deploy-rs";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs: let
|
|
lib = inputs.snowfall-lib.mkLib {
|
|
inherit inputs;
|
|
|
|
src = ./.;
|
|
|
|
snowfall = {
|
|
namespace = "auxolotl";
|
|
};
|
|
};
|
|
in
|
|
lib.mkFlake {
|
|
overlays = [
|
|
inputs.auxolotl-website.overlays.default
|
|
inputs.agenix-rekey.overlays.default
|
|
];
|
|
|
|
systems.modules.nixos = [
|
|
inputs.agenix.nixosModules.default
|
|
inputs.agenix-rekey.nixosModules.default
|
|
inputs.buildbot-nix.nixosModules.buildbot-master
|
|
inputs.buildbot-nix.nixosModules.buildbot-worker
|
|
];
|
|
|
|
deploy = lib.mkDeploy {
|
|
inherit (inputs) self;
|
|
overrides = {
|
|
axol.hostname = "137.184.177.239";
|
|
baxter.hostname = "209.38.149.197";
|
|
};
|
|
};
|
|
|
|
agenix-rekey = inputs.agenix-rekey.configure {
|
|
userFlake = inputs.self;
|
|
nodes = inputs.self.nixosConfigurations;
|
|
};
|
|
|
|
checks =
|
|
builtins.mapAttrs
|
|
(system: deploy-lib: deploy-lib.deployChecks inputs.self.deploy)
|
|
inputs.deploy-rs.lib;
|
|
};
|
|
}
|