[repo] NixOS: flake with the release build (test hooks off) and the web UI, services.ianitor module (edge, control, caddy-fallback, engine-select, per-boot UI proof, polkit for exactly two units), four VM tests, deploy/test-access.sh
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# 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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user