mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
14f09e01c1
We will simply rename the previous module and add a warning whenever the module is included directly, pointing the user to the right option and also enable it as well (in case somebody has missed the option and is wondering why VirtualBox doesn't work anymore). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
9 lines
254 B
Nix
9 lines
254 B
Nix
let
|
|
msg = "Importing <nixpkgs/nixos/modules/programs/virtualbox.nix> is "
|
|
+ "deprecated, please use `services.virtualboxHost.enable = true' "
|
|
+ "instead.";
|
|
in {
|
|
config.warnings = [ msg ];
|
|
config.services.virtualboxHost.enable = true;
|
|
}
|