Skyler Grey | f08a619 | 2024-06-01 23:55:20 +0000 | [diff] [blame] | 1 | # 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 Grey | d337740 | 2024-06-06 22:01:26 +0000 | [diff] [blame^] | 22 | |
| 23 | impermanence.url = "github:nix-community/impermanence"; |
Skyler Grey | f08a619 | 2024-06-01 23:55:20 +0000 | [diff] [blame] | 24 | }; |
| 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 Grey | d337740 | 2024-06-06 22:01:26 +0000 | [diff] [blame^] | 42 | systems.modules.nixos = [ inputs.impermanence.nixosModules.impermanence ]; |
| 43 | |
Skyler Grey | f08a619 | 2024-06-01 23:55:20 +0000 | [diff] [blame] | 44 | 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 | } |