| 
									
										
										
										
											2018-07-20 20:56:59 +00:00
										 |  |  | { lib, ... }: | 
					
						
							| 
									
										
										
										
											2013-07-03 13:59:00 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-14 16:26:48 +02:00
										 |  |  | with lib; | 
					
						
							| 
									
										
										
										
											2013-10-09 14:30:45 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-03 13:59:00 +02:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2013-09-04 13:05:09 +02:00
										 |  |  |   imports = | 
					
						
							| 
									
										
										
										
											2013-07-03 13:59:00 +02:00
										 |  |  |     [ ../virtualisation/virtualbox-image.nix | 
					
						
							|  |  |  |       ../installer/cd-dvd/channel.nix | 
					
						
							|  |  |  |       ../profiles/demo.nix | 
					
						
							|  |  |  |       ../profiles/clone-config.nix | 
					
						
							|  |  |  |     ]; | 
					
						
							| 
									
										
										
										
											2013-10-09 13:30:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-08-31 09:18:13 -07:00
										 |  |  |   # FIXME: UUID detection is currently broken | 
					
						
							|  |  |  |   boot.loader.grub.fsIdentifier = "provided"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-09 13:30:31 +02:00
										 |  |  |   # Allow mounting of shared folders. | 
					
						
							| 
									
										
										
										
											2018-06-30 01:50:32 +02:00
										 |  |  |   users.users.demo.extraGroups = [ "vboxsf" ]; | 
					
						
							| 
									
										
										
										
											2013-10-09 13:33:43 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   # Add some more video drivers to give X11 a shot at working in | 
					
						
							|  |  |  |   # VMware and QEMU. | 
					
						
							| 
									
										
										
										
											2016-11-07 14:36:41 -06:00
										 |  |  |   services.xserver.videoDrivers = mkOverride 40 [ "virtualbox" "vmware" "cirrus" "vesa" "modesetting" ]; | 
					
						
							| 
									
										
										
										
											2018-03-05 11:15:34 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  |   powerManagement.enable = false; | 
					
						
							| 
									
										
										
										
											2018-07-25 23:22:54 +03:00
										 |  |  |   system.stateVersion = mkDefault "18.03"; | 
					
						
							| 
									
										
										
										
											2018-10-21 14:39:59 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |   installer.cloneConfigExtra = ''
 | 
					
						
							|  |  |  |   # Let demo build as a trusted user. | 
					
						
							|  |  |  |   # nix.trustedUsers = [ "demo" ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Mount a VirtualBox shared folder. | 
					
						
							|  |  |  |   # This is configurable in the VirtualBox menu at | 
					
						
							|  |  |  |   # Machine / Settings / Shared Folders. | 
					
						
							|  |  |  |   # fileSystems."/mnt" = { | 
					
						
							|  |  |  |   #   fsType = "vboxsf"; | 
					
						
							|  |  |  |   #   device = "nameofdevicetomount"; | 
					
						
							|  |  |  |   #   options = [ "rw" ]; | 
					
						
							|  |  |  |   # }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # By default, the NixOS VirtualBox demo image includes SDDM and Plasma. | 
					
						
							|  |  |  |   # If you prefer another desktop manager or display manager, you may want | 
					
						
							|  |  |  |   # to disable the default. | 
					
						
							|  |  |  |   # services.xserver.desktopManager.plasma5.enable = lib.mkForce false; | 
					
						
							|  |  |  |   # services.xserver.displayManager.sddm.enable = lib.mkForce false; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Enable GDM/GNOME by uncommenting above two lines and two lines below. | 
					
						
							|  |  |  |   # services.xserver.displayManager.gdm.enable = true; | 
					
						
							|  |  |  |   # services.xserver.desktopManager.gnome3.enable = true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Set your time zone. | 
					
						
							|  |  |  |   # time.timeZone = "Europe/Amsterdam"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # List packages installed in system profile. To search, run: | 
					
						
							|  |  |  |   # \$ nix search wget | 
					
						
							|  |  |  |   # environment.systemPackages = with pkgs; [ | 
					
						
							|  |  |  |   #   wget vim | 
					
						
							|  |  |  |   # ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Enable the OpenSSH daemon. | 
					
						
							|  |  |  |   # services.openssh.enable = true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   system.stateVersion = mkDefault "18.03"; | 
					
						
							|  |  |  |   '';
 | 
					
						
							| 
									
										
										
										
											2013-07-03 13:59:00 +02:00
										 |  |  | } |