anchor.diff:        };
   
       boot.extraModulePackages =
  -      optional (cfg.videoDriver == "nvidia") kernelPackages.nvidia_x11;
  +      optional (cfg.videoDriver == "nvidia") kernelPackages.nvidia_x11 ++ 
  +      optional (cfg.videoDriver == "nvidiaLegacy") kernelPackages.nvidia_x11_legacy;
   
       environment.etc = optionals cfg.exportConfiguration
         [ { source = "${configFile}";
  
positive.code:         EndSection
  
          Section "Extensions"
            ${optionalString (cfg.videoDriver == "nvidia" || cfg.videoDriver == "i810" || cfg.videoDriver == "ati" || cfg.videoDriver == "radeonhd") ''
              Option "Composite" "Enable"
            ''}
          EndSection
  
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 =
  