virtualization: update the virtualbox-host module to use the extension pack if enabled.
This commit is contained in:
parent
d2b5e6eafe
commit
56ad359d93
|
@ -6,7 +6,8 @@ let
|
||||||
cfg = config.virtualisation.virtualbox.host;
|
cfg = config.virtualisation.virtualbox.host;
|
||||||
|
|
||||||
virtualbox = pkgs.virtualbox.override {
|
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 {
|
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 {
|
addNetworkInterface = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|
Loading…
Reference in New Issue