summary refs log tree commit diff
path: root/nixos/tests/common/wayland-cage.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/common/wayland-cage.nix')
-rw-r--r--nixos/tests/common/wayland-cage.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/common/wayland-cage.nix b/nixos/tests/common/wayland-cage.nix
new file mode 100644
index 00000000000..fd070094139
--- /dev/null
+++ b/nixos/tests/common/wayland-cage.nix
@@ -0,0 +1,13 @@
+{ ... }:
+
+{
+  imports = [ ./user-account.nix ];
+  services.cage = {
+    enable = true;
+    user = "alice";
+  };
+
+  virtualisation = {
+    qemu.options = [ "-vga virtio" ];
+  };
+}