summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2015-08-15 17:33:37 +0300
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-08-16 00:32:37 +0200
commit8914e1af6d1becc92eae50eedfd5dccfeacb876d (patch)
tree1d1332406265aeaa187c41289560b48f19b61a03 /nixos/modules/installer
parent67c9a485b71fdea89b1c5fd42f7b09fa3684be63 (diff)
downloadnixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.tar
nixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.tar.gz
nixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.tar.bz2
nixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.tar.lz
nixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.tar.xz
nixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.tar.zst
nixlib-8914e1af6d1becc92eae50eedfd5dccfeacb876d.zip
nixos-generate-config: Don't enable vbox guest via deprecated option
Avoids this warning when running `nixos-rebuild switch`:
````
building Nix...
building the system configuration...
trace: Obsolete option `services.virtualboxGuest.enable' is used. It was renamed to `virtualisation.virtualbox.guest.enable'.
````
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index 9010478662cc..39ef4c51ba10 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -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.virtualboxGuest.enable = true;"
+    push @attrs, "virtualisation.virtualbox.guest.enable = true;"
 }