anchor.diff:          xorg.xsetroot
           xorg.xprop
         ]
  -      ++ optional (videoDriver == "nvidia") kernelPackages.nvidia_x11;
  +      ++ optional (videoDriver == "nvidia") kernelPackages.nvidia_x11
  +      ++ optional (videoDriver == "nvidiaLegacy") kernelPackages.nvidia_x11_legacy;
   
       environment.systemPackages = config.environment.x11Packages;
       
  
positive.code:               then ''
                  ln -sf ${kernelPackages.nvidia_x11} /var/run/opengl-driver
                ''
                else if cfg.driSupport
                then "ln -sf ${pkgs.mesa} /var/run/opengl-driver"
                else ""
  
negative.code:             XORG_DRI_DRIVER_PATH = "${pkgs.mesa}/lib/dri";
            } // optionalAttrs (videoDriver == "nvidia") {
              LD_LIBRARY_PATH = "${xorg.libX11}/lib:${xorg.libXext}/lib:${kernelPackages.nvidia_x11}/lib";
            } // optionalAttrs (videoDriver == "nvidiaLegacy") {
              LD_LIBRARY_PATH = "${xorg.libX11}/lib:${xorg.libXext}/lib:${kernelPackages.nvidia_x11_legacy}/lib";
            } // cfg.displayManager.job.environment;
  
          preStart =
  