Files
ianitor/flake.nix
T

34 lines
1.2 KiB
Nix

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
{
description = "Ianitor Domi: a reverse proxy on Pingora with a small Domi CA, a web UI and an API";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
outputs =
{ self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAll = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
packages = forAll (pkgs: rec {
ianitor-web = pkgs.callPackage ./deploy/nixos/web.nix { };
ianitor = pkgs.callPackage ./deploy/nixos/package.nix { inherit ianitor-web; };
default = ianitor;
});
nixosModules.ianitor = import ./deploy/nixos/module.nix self;
nixosModules.default = self.nixosModules.ianitor;
# NixOS VM tests (ROADMAP §5 layer 4); they need KVM.
checks.x86_64-linux = import ./deploy/nixos/tests {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
inherit self;
};
formatter = forAll (pkgs: pkgs.nixfmt-rfc-style);
};
}