diff options
author | (cdep)illabout <cdep.illabout@gmail.com> | 2018-08-11 02:48:29 +0900 |
---|---|---|
committer | (cdep)illabout <cdep.illabout@gmail.com> | 2018-08-11 02:48:29 +0900 |
commit | 56ad359d93caeb3d8f41fd449193fd0adceeb669 (patch) | |
tree | 8880adacc5c5b9c1338f479e6dfe4ea2cac3662b /nixos/modules/virtualisation | |
parent | d2b5e6eafe4ee59d89a8233a599fafb83bc35169 (diff) |
virtualization: update the virtualbox-host module to use the extension pack if enabled.
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/virtualbox-host.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/virtualbox-host.nix b/nixos/modules/virtualisation/virtualbox-host.nix index 8adf3aa919d8e..af0a27b0ad863 100644 --- a/nixos/modules/virtualisation/virtualbox-host.nix +++ b/nixos/modules/virtualisation/virtualbox-host.nix @@ -6,7 +6,8 @@ let cfg = config.virtualisation.virtualbox.host; virtualbox = pkgs.virtualbox.override { - inherit (cfg) enableExtensionPack enableHardening headless; + inherit (cfg) enableHardening headless; + extensionPack = if cfg.enableExtensionPack then pkgs.virtualboxExtpack else null; }; kernelModules = config.boot.kernelPackages.virtualbox.override { @@ -28,7 +29,16 @@ in ''; }; - enableExtensionPack = mkEnableOption "VirtualBox extension pack"; + enableExtensionPack = mkEnableOption "VirtualBox extension pack" // { + description = '' + Whether to install the Oracle Extension Pack for VirtualBox. + + <important><para> + You must set <literal>nixpkgs.config.allowUnfree = true</literal> in + order to use this. This requires you accept the VirtualBox PUEL. + </para></important> + ''; + }; addNetworkInterface = mkOption { type = types.bool; |