clan-core/checks/wayland-proxy-virtwl/default.nix

36 lines
826 B
Nix
Raw Normal View History

2024-03-17 18:48:49 +00:00
import ../lib/test-base.nix (
{
config,
pkgs,
lib,
...
}:
{
name = "wayland-proxy-virtwl";
2023-12-15 11:53:53 +00:00
2024-03-17 18:48:49 +00:00
nodes.machine =
{ self, ... }:
2023-12-15 11:53:53 +00:00
{
2024-03-17 18:48:49 +00:00
imports = [
self.nixosModules.clanCore
{
clanCore.machineName = "machine";
clanCore.clanDir = ./.;
}
];
services.wayland-proxy-virtwl.enable = true;
2023-12-15 11:53:53 +00:00
2024-03-17 18:48:49 +00:00
virtualisation.qemu.options = [
"-vga none -device virtio-gpu-rutabaga,cross-domain=on,hostmem=4G,wsi=headless"
];
2024-01-12 10:58:16 +00:00
2024-03-17 18:48:49 +00:00
virtualisation.qemu.package = lib.mkForce pkgs.qemu_kvm;
};
testScript = ''
start_all()
# use machinectl
machine.succeed("machinectl shell .host ${config.nodes.machine.systemd.package}/bin/systemctl --user start wayland-proxy-virtwl >&2")
'';
}
)