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 = "github:auxolotl/website";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
checks =
|
|
|
|
builtins.mapAttrs
|
|
|
|
(system: deploy-lib: deploy-lib.deployChecks inputs.self.deploy)
|
|
|
|
inputs.deploy-rs.lib;
|
2024-05-04 21:20:45 +00:00
|
|
|
};
|
|
|
|
}
|