forked from mirrors/nixpkgs
nixos: Rename virtualbox to virtualboxGuest.
Especially new users could be confused by this, so we're now marking services.virtualbox.enable as obsolete and defaulting to services.virtualboxGuest.enable instead. I believe this now makes it clear, that this option is for guest additions only. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
77ff279f27
commit
444987193e
|
@ -235,7 +235,7 @@ chomp $virt;
|
|||
# Check if we're a VirtualBox guest. If so, enable the guest
|
||||
# additions.
|
||||
if ($virt eq "oracle") {
|
||||
push @attrs, "services.virtualbox.enable = true;"
|
||||
push @attrs, "services.virtualboxGuest.enable = true;"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -107,6 +107,9 @@ in zipModules ([]
|
|||
++ obsolete [ "services" "xserver" "startOpenSSHAgent" ] [ "programs" "ssh" "startAgent" ]
|
||||
++ obsolete [ "services" "xserver" "windowManager" "xbmc" ] [ "services" "xserver" "desktopManager" "xbmc" ]
|
||||
|
||||
# VirtualBox
|
||||
++ obsolete [ "services" "virtualbox" "enable" ] [ "services" "virtualboxGuest" "enable" ]
|
||||
|
||||
# KDE
|
||||
++ deprecated [ "kde" "extraPackages" ] [ "environment" "kdePackages" ]
|
||||
# ++ obsolete [ "environment" "kdePackages" ] [ "environment" "systemPackages" ] # !!! doesn't work!
|
||||
|
|
|
@ -6,7 +6,7 @@ with lib;
|
|||
|
||||
let
|
||||
|
||||
cfg = config.services.virtualbox;
|
||||
cfg = config.services.virtualboxGuest;
|
||||
kernel = config.boot.kernelPackages;
|
||||
|
||||
in
|
||||
|
@ -17,7 +17,7 @@ in
|
|||
|
||||
options = {
|
||||
|
||||
services.virtualbox = {
|
||||
services.virtualboxGuest = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
|
|
|
@ -128,6 +128,6 @@ in {
|
|||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
services.virtualbox.enable = true;
|
||||
services.virtualboxGuest.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ let
|
|||
let boolToKernOpt = b: if b then "y" else "n";
|
||||
# Disable RANDSTRUCT under virtualbox, as it has some kind of
|
||||
# breakage with the vbox guest drivers
|
||||
#randstruct = optionalString config.services.virtualbox.enable
|
||||
#randstruct = optionalString config.services.virtualboxGuest.enable
|
||||
# "GRKERNSEC_RANDSTRUCT n";
|
||||
|
||||
# Disable restricting links under the testing kernel, as something
|
||||
|
|
Loading…
Reference in a new issue