blob: a56597485eb493d0830fc57b263b9f12be19fa78 [file] [log] [blame]
Skyler Greyf08a6192024-06-01 23:55:20 +00001# SPDX-FileCopyrightText: 2024 Auxolotl Infrastructure Contributors
2# SPDX-FileCopyrightText: 2024 Clicks Codes
3#
4# SPDX-License-Identifier: GPL-3.0-only
5
6{
7 description = "Auxolotl infrastructure.";
8
9 inputs = {
10 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
11 unstable.url = "github:nixos/nixpkgs/nixos-unstable";
12
13 snowfall-lib = {
14 url = "github:snowfallorg/lib/dev";
15 inputs.nixpkgs.follows = "nixpkgs";
16 };
17
18 deploy-rs = {
19 url = "github:serokell/deploy-rs";
20 inputs.nixpkgs.follows = "nixpkgs";
21 };
Skyler Greyd3377402024-06-06 22:01:26 +000022
23 impermanence.url = "github:nix-community/impermanence";
Skyler Greyf08a6192024-06-01 23:55:20 +000024 };
25
26 outputs =
27 inputs:
28 let
29 lib = inputs.snowfall-lib.mkLib {
30 inherit inputs;
31
32 src = ./.;
33
34 snowfall = {
35 namespace = "clicks";
36 };
37 };
38 in
39 lib.mkFlake {
40 overlays = with inputs; [ ];
41
Skyler Greyd3377402024-06-06 22:01:26 +000042 systems.modules.nixos = [ inputs.impermanence.nixosModules.impermanence ];
43
Skyler Greyf08a6192024-06-01 23:55:20 +000044 deploy = lib.mkDeploy {
45 inherit (inputs) self;
46 overrides = {
47 a1d1.hostname = "d1.a1.clicks.domains";
48 };
49 };
50
51 checks = builtins.mapAttrs (
52 system: deploy-lib: deploy-lib.deployChecks inputs.self.deploy
53 ) inputs.deploy-rs.lib;
54
55 outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
56 };
57}