Author: sandervanderburg
Date: Tue Sep 7 13:28:17 2010
New Revision: 23672
URL: https://svn.nixos.org/websvn/nix/?rev=23672&sc=1
Log:
Added virtualbox service, which fixes the RandR problem and also keeps the
guest's clock in sync with the host
Added:
nixos/trunk/modules/services/misc/virtualbox.nix
Modified:
nixos/trunk/modules/module-list.nix
Modified: nixos/trunk/modules/module-list.nix
==============================================================================
--- nixos/trunk/modules/module-list.nix Tue Sep 7 13:11:21 2010 (r23671)
+++ nixos/trunk/modules/module-list.nix Tue Sep 7 13:28:17 2010 (r23672)
@@ -68,6 +68,7 @@
./services/misc/nixos-manual.nix
./services/misc/rogue.nix
./services/misc/synergy.nix
+ ./services/misc/virtualbox.nix
./services/monitoring/monit.nix
./services/monitoring/nagios/default.nix
./services/monitoring/systemhealth.nix
Added: nixos/trunk/modules/services/misc/virtualbox.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixos/trunk/modules/services/misc/virtualbox.nix Tue Sep 7 13:28:17
2010 (r23672)
@@ -0,0 +1,46 @@
+# VirtualBox server
+{ config, pkgs, ... }:
+
+with pkgs.lib;
+
+let
+
+ cfg = config.services.virtualbox;
+
+in
+
+{
+
+ ###### interface
+
+ options = {
+
+ services.virtualbox = {
+
+ enable = mkOption {
+ default = false;
+ description = "Whether to enable the VirtualBox service and other
guest additions.";
+ };
+
+ };
+
+ };
+
+
+ ###### implementation
+
+ config = mkIf cfg.enable {
+
+ environment.systemPackages = [ ];
+
+ jobs.virtualbox =
+ { description = "VirtualBox service";
+
+ startOn = "started udev";
+
+ exec =
"${pkgs.linuxPackages.virtualboxGuestAdditions}/sbin/VBoxService";
+ };
+
+ };
+
+}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits