[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:
2026-11-08 00:04:13 +01:00
parent a61dfd854f
commit ca9bf3fdd4
13 changed files with 1375 additions and 4 deletions
+44
View File
@@ -0,0 +1,44 @@
# 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/.
# The web UI (apps/web with packages/ui), built with pnpm from the lockfile. No outside
# requests at runtime: the fonts are bundled.
{ lib, stdenv, nodejs_22, pnpm_11, fetchPnpmDeps, pnpmConfigHook }:
stdenv.mkDerivation (finalAttrs: {
pname = "ianitor-web";
version = "0.1.0";
src = lib.fileset.toSource {
root = ../..;
fileset = lib.fileset.unions [
../../package.json
../../pnpm-workspace.yaml
../../pnpm-lock.yaml
../../apps/web
../../packages/ui
];
};
nativeBuildInputs = [ nodejs_22 pnpm_11 pnpmConfigHook ];
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs) pname version src;
pnpm = pnpm_11;
fetcherVersion = 4;
hash = "sha256-Hq6LE6Bwb1AeMSMDF0RUbCSX+mMAl8uLt9rPwV6tKBs=";
};
buildPhase = ''
runHook preBuild
pnpm --filter web build
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r apps/web/dist $out
runHook postInstall
'';
})