forked from mirrors/nixpkgs
Rename services.virtualboxHost -> programs.virtualbox
VirtualBox is an application, not a system service.
This commit is contained in:
parent
59bbd41599
commit
687caebfcb
|
@ -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" ]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue