cluster/simulacrum: only run checks on x86_64-linux

This commit is contained in:
Max Headroom 2024-07-23 20:17:47 +02:00
parent 22120eda48
commit 9424a23005

View file

@ -1,8 +1,8 @@
{ config, extendModules, lib, ... }:
{
perSystem = { pkgs, ... }: {
checks = lib.mapAttrs' (name: svc: let
perSystem = { pkgs, system, ... }: {
checks = lib.mkIf (system == "x86_64-linux") (lib.mapAttrs' (name: svc: let
runSimulacrum = pkgs.callPackage ./. {
inherit config extendModules;
};
@ -11,6 +11,6 @@
value = runSimulacrum {
service = name;
};
}) (lib.filterAttrs (_: svc: svc.simulacrum.enable) config.cluster.config.services);
}) (lib.filterAttrs (_: svc: svc.simulacrum.enable) config.cluster.config.services));
};
}