{ pkgs }:
let
nixosLib = import "${pkgs.path}/nixos/lib" { };
runTest =
test:
nixosLib.runTest {
imports = [
test
{ node.pkgs = pkgs; }
];
hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs
};
tests = {
system-dbus-services = runTest ./system-dbus-services.nix;
system-systemctl-services = runTest ./system-systemctl-services.nix;
user-dbus-services = runTest ./user-dbus-services.nix;
user-systemctl-services = runTest ./user-systemctl-services.nix;
};
in
tests
// {
all = pkgs.linkFarm "all" (pkgs.lib.mapAttrsToList (name: path: { inherit name path; }) tests);
}