Skip to content

Commit

Permalink
virtualbox module: allow to pass the package (#44907)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Aug 11, 2018
1 parent c7596ef commit 1e65420
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions nixos/modules/virtualisation/virtualbox-host.nix
Expand Up @@ -5,7 +5,7 @@ with lib;
let
cfg = config.virtualisation.virtualbox.host;

virtualbox = pkgs.virtualbox.override {
virtualbox = cfg.package.override {
inherit (cfg) enableExtensionPack enableHardening headless;
};

Expand All @@ -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 {
type = types.bool;
Expand All @@ -38,6 +45,8 @@ in
'';
};

enableExtensionPack = mkEnableOption "VirtualBox extension pack";

enableHardening = mkOption {
type = types.bool;
default = true;
Expand Down

0 comments on commit 1e65420

Please sign in to comment.