Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
nixos/virtualbox: add warning when for ineffective nixpkgs config
Browse files Browse the repository at this point in the history
nixpkgs.config.virtualbox.enableExtensionPack doesn't do anything, but
used to. Add a warning for the unsuspecting.
  • Loading branch information
bendlas committed Mar 6, 2019
1 parent d97724e commit 8b6a38c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/virtualisation/virtualbox-host.nix
Expand Up @@ -83,6 +83,8 @@ in
};

config = mkIf cfg.enable (mkMerge [{
warnings = mkIf (config.nixpkgs.config.virtualbox.enableExtensionPack or false)
"'nixpkgs.virtualbox.enableExtensionPack' has no effect, please use 'virtualisation.virtualbox.host.enableExtensionPack'";
boot.kernelModules = [ "vboxdrv" "vboxnetadp" "vboxnetflt" ];
boot.extraModulePackages = [ kernelModules ];
environment.systemPackages = [ virtualbox ];
Expand Down

0 comments on commit 8b6a38c

Please sign in to comment.