virtualbox module: allow to pass the package (#44907)
This commit is contained in:
parent
c7596ef742
commit
1e65420eb3
|
@ -5,7 +5,7 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.virtualisation.virtualbox.host;
|
cfg = config.virtualisation.virtualbox.host;
|
||||||
|
|
||||||
virtualbox = pkgs.virtualbox.override {
|
virtualbox = cfg.package.override {
|
||||||
inherit (cfg) enableExtensionPack enableHardening headless;
|
inherit (cfg) enableExtensionPack enableHardening headless;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,7 +28,14 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
enableExtensionPack = mkEnableOption "VirtualBox extension pack";
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.virtualbox;
|
||||||
|
defaultText = "pkgs.virtualbox";
|
||||||
|
description = ''
|
||||||
|
Which VirtualBox package to use.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
addNetworkInterface = mkOption {
|
addNetworkInterface = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -38,6 +45,8 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableExtensionPack = mkEnableOption "VirtualBox extension pack";
|
||||||
|
|
||||||
enableHardening = mkOption {
|
enableHardening = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
Loading…
Reference in New Issue