anchor.diff:              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 =
  
positive.code:     services.xserver.deviceSection =
        ''
          Identifier "Device[0]"
          Driver "${cfg.videoDriver}"
  
          # !!! Is the "Clone" option still useful?
          Option "Clone" "${if cfg.isClone then "on" else "off"}"
  
negative.code:         EndSection
  
          Section "Extensions"
            ${optionalString (cfg.videoDriver == "nvidia" || cfg.videoDriver == "nvidiaLegacy" || cfg.videoDriver == "i810" || cfg.videoDriver == "ati" || cfg.videoDriver == "radeonhd") ''
              Option "Composite" "Enable"
            ''}
          EndSection
  