{ pkgs, nixosLib, clan-core, module, ... }: nixosLib.runTest ( { ... }: { imports = [ clan-core.modules.nixosVmTest.clanTest ]; hostPkgs = pkgs; name = "wifi-service"; clan = { directory = ./.; test.useContainers = false; modules."@clan/wifi" = module; inventory = { machines.test = { }; instances = { wg-test-one = { module.name = "@clan/wifi"; roles.default.machines = { test.settings.networks.one = { }; }; }; }; }; }; testScript = '' start_all() test.wait_for_unit("NetworkManager.service") psk = test.succeed("cat /run/NetworkManager/system-connections/one.nmconnection") assert "password-eins" in psk, "Password is incorrect" ''; } )