From a3118792a52779024e38100799a2de5c263a740a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 11 Jun 2012 22:37:55 +0000 Subject: [PATCH] * Make the ACPI Shutdown command in VirtualBox to do the right thing. svn path=/nixos/trunk/; revision=34473 --- modules/virtualisation/virtualbox-guest.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/virtualisation/virtualbox-guest.nix b/modules/virtualisation/virtualbox-guest.nix index d0935d9a052c..8e09d79e3a48 100644 --- a/modules/virtualisation/virtualbox-guest.nix +++ b/modules/virtualisation/virtualbox-guest.nix @@ -73,7 +73,10 @@ if (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) then # should restrict this to logged-in users. KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666" ''; - + + # Make the ACPI Shutdown command to do the right thing. + services.acpid.enable = true; + services.acpid.powerEventCommands = "poweroff"; }; }