infra/flake.nix

58 lines
1.2 KiB
Nix
Raw Permalink Normal View History

# SPDX-FileCopyrightText: 2024 Auxolotl Infrastructure Contributors
#
# SPDX-License-Identifier: GPL-3.0-only
2024-05-04 21:20:45 +00:00
{
description = "Auxolotl infrastructure.";
inputs = {
2024-05-07 03:36:54 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2024-05-04 21:20:45 +00:00
snowfall-lib = {
url = "github:snowfallorg/lib/dev";
inputs.nixpkgs.follows = "nixpkgs";
};
auxolotl-website = {
url = "git+https://git.auxolotl.org/auxolotl/website";
2024-05-04 21:20:45 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-07 03:36:54 +00:00
deploy-rs = {
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-04 21:20:45 +00:00
};
2024-05-07 03:36:54 +00:00
outputs = inputs: let
lib = inputs.snowfall-lib.mkLib {
2024-05-04 21:20:45 +00:00
inherit inputs;
src = ./.;
2024-05-07 03:36:54 +00:00
snowfall = {
namespace = "auxolotl";
};
};
in
lib.mkFlake {
2024-05-04 21:20:45 +00:00
overlays = with inputs; [
auxolotl-website.overlays.default
];
2024-05-07 03:36:54 +00:00
deploy = lib.mkDeploy {
inherit (inputs) self;
2024-05-21 20:38:54 +00:00
overrides = {
axol.hostname = "137.184.177.239";
baxter.hostname = "209.38.149.197";
};
2024-05-07 03:36:54 +00:00
};
checks =
builtins.mapAttrs
(system: deploy-lib: deploy-lib.deployChecks inputs.self.deploy)
inputs.deploy-rs.lib;
2024-05-04 21:20:45 +00:00
};
}