summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/armagetronad.nix2
-rw-r--r--nixos/tests/cagebreak.nix6
-rw-r--r--nixos/tests/monado.nix2
-rw-r--r--nixos/tests/openarena.nix2
-rw-r--r--nixos/tests/quake3.nix2
-rw-r--r--nixos/tests/seatd.nix2
-rw-r--r--nixos/tests/tinywl.nix2
7 files changed, 8 insertions, 10 deletions
diff --git a/nixos/tests/armagetronad.nix b/nixos/tests/armagetronad.nix
index d59827354b77..ca93ce8fb6c5 100644
--- a/nixos/tests/armagetronad.nix
+++ b/nixos/tests/armagetronad.nix
@@ -12,7 +12,7 @@ let
{ pkgs, ... }:
{ imports = [ ./common/user-account.nix ./common/x11.nix ];
- hardware.opengl.driSupport = true;
+ hardware.graphics.enable = true;
virtualisation.memorySize = 256;
environment = {
systemPackages = [ pkgs.armagetronad ];
diff --git a/nixos/tests/cagebreak.nix b/nixos/tests/cagebreak.nix
index 1fef7cb57cfc..4d7664c1505f 100644
--- a/nixos/tests/cagebreak.nix
+++ b/nixos/tests/cagebreak.nix
@@ -14,9 +14,7 @@ in
};
nodes.machine = { config, ... }:
- let
- alice = config.users.users.alice;
- in {
+ {
# Automatically login on tty1 as a normal user:
imports = [ ./common/user-account.nix ];
services.getty.autologinUser = "alice";
@@ -31,7 +29,7 @@ in
fi
'';
- hardware.opengl.enable = true;
+ hardware.graphics.enable = true;
programs.xwayland.enable = true;
security.polkit.enable = true;
environment.systemPackages = [ pkgs.cagebreak pkgs.wayland-utils ];
diff --git a/nixos/tests/monado.nix b/nixos/tests/monado.nix
index 8368950951e7..6f0d27ee4245 100644
--- a/nixos/tests/monado.nix
+++ b/nixos/tests/monado.nix
@@ -5,7 +5,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
{ pkgs, ... }:
{
- hardware.opengl.enable = true;
+ hardware.graphics.enable = true;
users.users.alice = {
isNormalUser = true;
uid = 1000;
diff --git a/nixos/tests/openarena.nix b/nixos/tests/openarena.nix
index 63dc1b9a6857..4dfe71a9a1e9 100644
--- a/nixos/tests/openarena.nix
+++ b/nixos/tests/openarena.nix
@@ -5,7 +5,7 @@ let
{ pkgs, ... }:
{ imports = [ ./common/x11.nix ];
- hardware.opengl.driSupport = true;
+ hardware.graphics.enable = true;
environment.systemPackages = [ pkgs.openarena ];
};
diff --git a/nixos/tests/quake3.nix b/nixos/tests/quake3.nix
index 4b7ca03b365b..ff4025e56f4c 100644
--- a/nixos/tests/quake3.nix
+++ b/nixos/tests/quake3.nix
@@ -21,7 +21,7 @@ let
{ pkgs, ... }:
{ imports = [ ./common/x11.nix ];
- hardware.opengl.driSupport = true;
+ hardware.graphics.enable = true;
environment.systemPackages = [ pkgs.quake3demo ];
nixpkgs.config.packageOverrides = overrides;
nixpkgs.config.allowUnfreePredicate = unfreePredicate;
diff --git a/nixos/tests/seatd.nix b/nixos/tests/seatd.nix
index 138a6cb1cf44..9178492fdb0e 100644
--- a/nixos/tests/seatd.nix
+++ b/nixos/tests/seatd.nix
@@ -39,7 +39,7 @@ in
dwl -s 'foot touch /tmp/foot_started'
'';
- hardware.opengl.enable = true;
+ hardware.graphics.enable = true;
virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ];
services.seatd.enable = true;
};
diff --git a/nixos/tests/tinywl.nix b/nixos/tests/tinywl.nix
index 9199866b57af..2dc354812a75 100644
--- a/nixos/tests/tinywl.nix
+++ b/nixos/tests/tinywl.nix
@@ -16,7 +16,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
systemPackages = with pkgs; [ tinywl foot wayland-utils ];
};
- hardware.opengl.enable = true;
+ hardware.graphics.enable = true;
# Automatically start TinyWL when logging in on tty1:
programs.bash.loginShellInit = ''