infra/flake.nix
Skyler Grey 0add9248e7
feat(license): Switch to REUSE
https://reuse.software is a way of specifying licenses in a simple way
that easily allows us to specify multiple licenses in a project and
check that we are correctly specifying our licenses

We plan to add an MIT-licensed file to the project in a future commit,
which prompted us to look at REUSE to make this simpler
2024-05-28 23:58:52 +00:00

58 lines
1.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";
};
auxolotl-website = {
url = "github:auxolotl/website";
inputs.nixpkgs.follows = "nixpkgs";
};
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 = with inputs; [
auxolotl-website.overlays.default
];
deploy = lib.mkDeploy {
inherit (inputs) self;
overrides = {
axol.hostname = "137.184.177.239";
baxter.hostname = "209.38.149.197";
};
};
checks =
builtins.mapAttrs
(system: deploy-lib: deploy-lib.deployChecks inputs.self.deploy)
inputs.deploy-rs.lib;
};
}