anchor.diff:      pkgs.kdebase
       xorg.iceauth # absolutely required by dcopserver
       xorg.xset # used by startkde, non-essential
  +  ]
  +  ++ optional (videoDriver == "nvidia") [
  +    pkgs.nvidiaDrivers
     ];
   
   
  
positive.code: 
        export modulePaths=
        for i in $(find ${toString modules} -type d); do
          if ls $i/*.so 2> /dev/null; then
            modulePaths="''${modulePaths}ModulePath \"$i\"''\n"
          fi
        done
  
negative.code:     
        rm -f /var/run/opengl-driver
        ${if videoDriver == "nvidia"        
          then ''
            ln -sf ${pkgs.nvidiaDrivers} /var/run/opengl-driver
            # Ideally, the nvidia driver would be somewhere where modprobe looks for it...
            ${pkgs.module_init_tools}/sbin/insmod ${pkgs.nvidiaDrivers}/lib/nvidia.ko || true
          ''
  	else if cfg.driSupport
          then "ln -sf ${pkgs.mesa} /var/run/opengl-driver"
          else ""
  