2022-12-02 00:21:38 +01:00
|
|
|
{
|
|
|
|
perSystem = { pkgs, final, ... }:
|
|
|
|
let
|
|
|
|
inherit (final) nixosTest arion lib;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
checks = lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
|
|
test = nixosTest ./arion-test;
|
|
|
|
|
|
|
|
nixosModuleWithDocker =
|
|
|
|
import ./nixos-virtualization-arion-test/test.nix final {
|
|
|
|
virtualisation.arion.backend = "docker";
|
|
|
|
};
|
|
|
|
|
2023-01-13 19:15:04 +01:00
|
|
|
# Currently broken; kafka can't reach zookeeper
|
|
|
|
# nixosModuleWithPodman =
|
|
|
|
# import ./nixos-virtualization-arion-test/test.nix final {
|
|
|
|
# virtualisation.arion.backend = "podman-socket";
|
|
|
|
# };
|
2022-12-02 00:21:38 +01:00
|
|
|
|
|
|
|
testWithPodman =
|
|
|
|
nixosTest (import ./arion-test { usePodman = true; pkgs = final; });
|
|
|
|
|
|
|
|
testBuild = arion.build {
|
|
|
|
|
|
|
|
# To be more accurate, we could do
|
|
|
|
# pkgs = import ../examples/minimal/arion-pkgs.nix;
|
|
|
|
# But let's avoid re-evaluating Nixpkgs
|
|
|
|
pkgs = final;
|
|
|
|
|
|
|
|
modules = [ ../examples/minimal/arion-compose.nix ];
|
|
|
|
};
|
|
|
|
|
2023-10-14 17:12:32 +02:00
|
|
|
testModuleOptions = import ./module-options-arion-test {
|
|
|
|
inherit lib;
|
|
|
|
pkgs = final;
|
|
|
|
};
|
2022-12-02 00:21:38 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|