* Use config.system.build.grub rather than pkgs.grub to get the right

GRUB when version 2 is enabled.

svn path=/nixos/branches/boot-order/; revision=22479
This commit is contained in:
Eelco Dolstra 2010-07-05 14:33:11 +00:00
parent 4225181fa1
commit da0d5c5645
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ in
config = mkIf cfg.enable {
services.xserver.displayManager.job =
{ execCmd = "PATH=${pkgs.grub}/sbin:$PATH exec ${kdebase_workspace}/bin/kdm -config ${kdmrc} -nodaemon";
{ execCmd =
(optionalString (config.system.boot.loader.id == "grub") "PATH=${config.system.build.grub}/sbin:$PATH ") +
"exec ${kdebase_workspace}/bin/kdm -config ${kdmrc} -nodaemon";
logsXsession = true;
};