anchor.diff:      services.xserver.deviceSection =
         ''
           Identifier "Device[0]"
  -        Driver "${cfg.videoDriver}"
  +        Driver "${if cfg.videoDriver == "nvidiaLegacy" then "nvidia" else cfg.videoDriver}"
   
           # !!! Is the "Clone" option still useful?
           Option "Clone" "${if cfg.isClone then "on" else "off"}"
  
positive.code:   # Map the video driver setting to a driver.
    knownVideoDrivers = {
      nvidia =     { modules = [ kernelPackages.nvidia_x11 ]; };
      vesa =       { modules = [ xorg.xf86videovesa ]; };
      vga =        { modules = [ xorg.xf86videovga ]; };
      sis =        { modules = [ xorg.xf86videosis ]; };
  
negative.code:         xorg.xsetroot
          xorg.xprop
        ]
        ++ optional (videoDriver == "nvidia") kernelPackages.nvidia_x11
        ++ optional (videoDriver == "nvidiaLegacy") kernelPackages.nvidia_x11_legacy;
  
      environment.systemPackages = config.environment.x11Packages;
      
  