Make VirtualBox Guest Additions use the configured kernel.

svn path=/nixos/trunk/; revision=29346
This commit is contained in:
Marco Maggesi 2011-09-19 13:20:09 +00:00
parent 8e13361521
commit 91a6dc6168

View File

@ -6,6 +6,7 @@ with pkgs.lib;
let
cfg = config.services.virtualbox;
kernel = config.boot.kernelPackages;
in
@ -33,14 +34,14 @@ in
environment.systemPackages = [ ];
boot.extraModulePackages = [ pkgs.linuxPackages.virtualboxGuestAdditions ];
boot.extraModulePackages = [ kernel.virtualboxGuestAdditions ];
jobs.virtualbox =
{ description = "VirtualBox service";
startOn = "started udev";
exec = "${pkgs.linuxPackages.virtualboxGuestAdditions}/sbin/VBoxService";
exec = "${kernel.virtualboxGuestAdditions}/sbin/VBoxService";
};
};