diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index a928f47f439e..7874c8462ca3 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -144,6 +144,8 @@ in zipModules ([] # DNSCrypt-proxy ++ obsolete [ "services" "dnscrypt-proxy" "port" ] [ "services" "dnscrypt-proxy" "localPort" ] +++ obsolete [ "services" "virtualboxHost" ] [ "programs" "virtualbox" ] + # Options that are obsolete and have no replacement. ++ obsolete' [ "boot" "loader" "grub" "bootDevice" ] ++ obsolete' [ "boot" "initrd" "luks" "enable" ] diff --git a/nixos/modules/virtualisation/virtualbox-host.nix b/nixos/modules/virtualisation/virtualbox-host.nix index fc113a08a356..b8b3d62a0319 100644 --- a/nixos/modules/virtualisation/virtualbox-host.nix +++ b/nixos/modules/virtualisation/virtualbox-host.nix @@ -3,7 +3,7 @@ with lib; let - cfg = config.services.virtualboxHost; + cfg = config.programs.virtualbox; virtualbox = config.boot.kernelPackages.virtualbox.override { inherit (cfg) enableHardening; }; @@ -11,12 +11,12 @@ let in { - options.services.virtualboxHost = { + options.programs.virtualbox = { enable = mkOption { type = types.bool; default = false; description = '' - Whether to enable host-side support for VirtualBox. + Whether to enable VirtualBox. In order to pass USB devices from the host to the guests, the user