webui: implement /api/machines/{name}/schema

This commit is contained in:
DavHau
2023-08-25 21:26:30 +02:00
parent 6d4d455626
commit fb76ad45e8
10 changed files with 121 additions and 11 deletions

View File

@@ -18,6 +18,7 @@
, wheel
, zerotierone
, rsync
, pkgs
}:
let
# This provides dummy options for testing clan config and prevents it from
@@ -55,6 +56,8 @@ python3.pkgs.buildPythonPackage {
format = "pyproject";
inherit CLAN_OPTIONS_FILE;
# This is required for the python tests, where some nix libs depend on nixpkgs
CLAN_NIXPKGS = pkgs.path;
nativeBuildInputs = [
setuptools
@@ -65,6 +68,7 @@ python3.pkgs.buildPythonPackage {
passthru.tests.clan-pytest = runCommand "clan-tests"
{
nativeBuildInputs = [ age zerotierone bubblewrap sops nix openssh rsync stdenv.cc ];
CLAN_NIXPKGS = pkgs.path;
} ''
export CLAN_OPTIONS_FILE="${CLAN_OPTIONS_FILE}"
cp -r ${source} ./src