16 lines
455 B
Nix
16 lines
455 B
Nix
{ config, extendModules, lib, ... }:
|
|
|
|
{
|
|
perSystem = { pkgs, system, ... }: {
|
|
checks = lib.mkIf (system == "x86_64-linux") (lib.mapAttrs' (name: svc: let
|
|
runSimulacrum = pkgs.callPackage ./. {
|
|
inherit config extendModules;
|
|
};
|
|
in {
|
|
name = "simulacrum-${name}";
|
|
value = runSimulacrum {
|
|
service = name;
|
|
};
|
|
}) (lib.filterAttrs (_: svc: svc.simulacrum.enable) config.cluster.config.services));
|
|
};
|
|
}
|