forked from fediversity/fediversity
status: still fails on nix-flake-check.sh expecting `nix build` over `nix run`. Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
65 lines
1.6 KiB
Nix
65 lines
1.6 KiB
Nix
{ inputs, sources, ... }:
|
|
|
|
{
|
|
_class = "flake";
|
|
|
|
perSystem =
|
|
{ pkgs, system, ... }:
|
|
let
|
|
inherit (pkgs) lib;
|
|
in
|
|
{
|
|
checks = {
|
|
data-model =
|
|
pkgs.writers.writeBashBin "data-model.sh"
|
|
{
|
|
makeWrapperArgs = [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
"${lib.makeBinPath [
|
|
pkgs.nix-unit
|
|
]}"
|
|
];
|
|
}
|
|
''
|
|
nix-unit ./deployment/data-model-test.nix
|
|
'';
|
|
|
|
proxmox-basic = import ./check/proxmox {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit sources system;
|
|
};
|
|
|
|
deployment-basic = import ./check/basic {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit inputs sources;
|
|
};
|
|
|
|
deployment-cli = import ./check/cli {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit inputs sources;
|
|
};
|
|
|
|
deployment-panel = import ./check/panel {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit inputs sources;
|
|
};
|
|
|
|
deployment-model-ssh = import ./check/data-model-ssh {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit inputs sources;
|
|
};
|
|
|
|
deployment-model-nixops4 = import ./check/data-model-nixops4 {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit inputs sources;
|
|
};
|
|
|
|
deployment-model-tf = import ./check/data-model-tf {
|
|
inherit (pkgs.testers) runNixOSTest;
|
|
inherit inputs sources;
|
|
};
|
|
};
|
|
};
|
|
}
|