3
0
Fork 0
forked from mirrors/nixpkgs

Rename services.virtualboxHost -> programs.virtualbox

VirtualBox is an application, not a system service.
This commit is contained in:
Eelco Dolstra 2015-08-12 14:11:03 +02:00
parent 59bbd41599
commit 687caebfcb
2 changed files with 5 additions and 3 deletions

View file

@ -144,6 +144,8 @@ in zipModules ([]
# DNSCrypt-proxy # DNSCrypt-proxy
++ obsolete [ "services" "dnscrypt-proxy" "port" ] [ "services" "dnscrypt-proxy" "localPort" ] ++ obsolete [ "services" "dnscrypt-proxy" "port" ] [ "services" "dnscrypt-proxy" "localPort" ]
++ obsolete [ "services" "virtualboxHost" ] [ "programs" "virtualbox" ]
# Options that are obsolete and have no replacement. # Options that are obsolete and have no replacement.
++ obsolete' [ "boot" "loader" "grub" "bootDevice" ] ++ obsolete' [ "boot" "loader" "grub" "bootDevice" ]
++ obsolete' [ "boot" "initrd" "luks" "enable" ] ++ obsolete' [ "boot" "initrd" "luks" "enable" ]

View file

@ -3,7 +3,7 @@
with lib; with lib;
let let
cfg = config.services.virtualboxHost; cfg = config.programs.virtualbox;
virtualbox = config.boot.kernelPackages.virtualbox.override { virtualbox = config.boot.kernelPackages.virtualbox.override {
inherit (cfg) enableHardening; inherit (cfg) enableHardening;
}; };
@ -11,12 +11,12 @@ let
in in
{ {
options.services.virtualboxHost = { options.programs.virtualbox = {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable host-side support for VirtualBox. Whether to enable VirtualBox.
<note><para> <note><para>
In order to pass USB devices from the host to the guests, the user In order to pass USB devices from the host to the guests, the user