* Added a module for enabling VirtualBox.

svn path=/nixos/trunk/; revision=32722
This commit is contained in:
Eelco Dolstra 2012-03-01 20:10:08 +00:00
parent e8539b6f60
commit 58c6231a20

View File

@ -0,0 +1,19 @@
{ config, pkgs, ... }:
with pkgs.lib;
{
boot.kernelModules = [ "vboxdrv" "vboxnetadp" "vboxnetflt" ];
boot.extraModulePackages = [ pkgs.linuxPackages.virtualbox ];
environment.systemPackages = [ pkgs.linuxPackages.virtualbox ];
# VBoxNetAdpCtl needs to be setuid root to allow users to create
# host-only networks (https://www.virtualbox.org/ticket/4014).
security.setuidOwners = singleton
{ program = "VBoxNetAdpCtl";
source = "${pkgs.linuxPackages.virtualbox}/virtualbox/VBoxNetAdpCtl";
owner = "root";
group = "root";
setuid = true;
};
}