* Added a module for enabling VirtualBox.
svn path=/nixos/trunk/; revision=32722
This commit is contained in:
parent
e8539b6f60
commit
58c6231a20
19
modules/programs/virtualbox.nix
Normal file
19
modules/programs/virtualbox.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user