From 1d5748942771c6d39df0030e36819b47002d460a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 16 Jul 2012 11:32:26 -0400 Subject: [PATCH] Global replace /var/run/opengl-driver -> /run/opengl-driver --- modules/services/x11/xserver.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index 2ae42f5b41be..97424308c273 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -407,21 +407,21 @@ in preStart = '' - rm -f /var/run/opengl-driver - rm -f /var/run/opengl-driver-32 + rm -f /run/opengl-driver + rm -f /run/opengl-driver-32 ${# !!! The OpenGL driver depends on what's detected at runtime. if elem "nvidia" driverNames then '' - ln -sf ${kernelPackages.nvidia_x11} /var/run/opengl-driver + ln -sf ${kernelPackages.nvidia_x11} /run/opengl-driver ${optionalString (pkgs.stdenv.system == "x86_64-linux" && cfg.driSupport32Bit) - "ln -sf ${pkgs_i686.linuxPackages.nvidia_x11.override { libsOnly = true; kernel = null; } } /var/run/opengl-driver-32"} + "ln -sf ${pkgs_i686.linuxPackages.nvidia_x11.override { libsOnly = true; kernel = null; } } /run/opengl-driver-32"} '' else if elem "nvidiaLegacy96" driverNames then - "ln -sf ${kernelPackages.nvidia_x11_legacy96} /var/run/opengl-driver" + "ln -sf ${kernelPackages.nvidia_x11_legacy96} /run/opengl-driver" else if elem "nvidiaLegacy173" driverNames then - "ln -sf ${kernelPackages.nvidia_x11_legacy173} /var/run/opengl-driver" + "ln -sf ${kernelPackages.nvidia_x11_legacy173} /run/opengl-driver" else if cfg.driSupport then - "ln -sf ${pkgs.mesa} /var/run/opengl-driver" + "ln -sf ${pkgs.mesa} /run/opengl-driver" else "" }