diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index 6f5e51043e9b..5738a24e69d9 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -478,8 +478,9 @@ in preStart = '' - rm -f /run/opengl-driver - ln -sf opengl-driver /run/opengl-driver-32 + rm -f /run/opengl-driver{,-32} + ${optionalString (!cfg.driSupport32Bit) "ln -sf opengl-driver /run/opengl-driver-32"} + ${# !!! The OpenGL driver depends on what's detected at runtime. if elem "nvidia" driverNames then ''