diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-12 14:11:03 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-12 14:12:21 +0200 |
commit | 687caebfcb571bb45a6f7858c0969eee7e63505b (patch) | |
tree | 64b0abebe881efeae3da77dc47485da5020944f6 /nixos/modules | |
parent | 59bbd415990b62e23f319893341960023d2b1ea6 (diff) | |
download | nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.tar nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.tar.gz nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.tar.bz2 nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.tar.lz nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.tar.xz nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.tar.zst nixlib-687caebfcb571bb45a6f7858c0969eee7e63505b.zip |
Rename services.virtualboxHost -> programs.virtualbox
VirtualBox is an application, not a system service.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/rename.nix | 2 | ||||
-rw-r--r-- | nixos/modules/virtualisation/virtualbox-host.nix | 6 |
2 files changed, 5 insertions, 3 deletions
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. <note><para> In order to pass USB devices from the host to the guests, the user |