anchor.diff:      pkgs.kdebase
       xorg.iceauth # absolutely required by dcopserver
       xorg.xset # used by startkde, non-essential
  +  ]
  +  ++ optional (videoDriver == "nvidia") [
  +    pkgs.nvidiaDrivers
     ];
   
   
  
positive.code:     
        rm -f /var/run/opengl-driver
        ${if videoDriver == "nvidia"        
          then "ln -sf ${pkgs.nvidiaDrivers} /var/run/opengl-driver"
  	else if cfg.driSupport
          then "ln -sf ${pkgs.mesa} /var/run/opengl-driver"
          else ""
  
negative.code:     env SLIM_THEMESDIR=${slimThemesDir}
      env FONTCONFIG_FILE=/etc/fonts/fonts.conf # !!! cleanup
      env XKB_BINDIR=${xorg.xkbcomp}/bin # Needed for the Xkb extension.
  
      ${if videoDriver == "nvidia" 
        then "env LD_LIBRARY_PATH=${xorg.libX11}/lib:${xorg.libXext}/lib:${pkgs.nvidiaDrivers}/lib" 
        else ""
      }
  
      ${if videoDriver != "nvidia"
        then "env XORG_DRI_DRIVER_PATH=${pkgs.mesa}/lib/modules/dri"
        else ""
      }
  
      exec ${pkgs.slim}/bin/slim
    '';
  