1{ lib, ... }:
2
3with lib;
4
5{
6 imports =
7 [ ../virtualisation/virtualbox-image.nix
8 ../installer/cd-dvd/channel.nix
9 ../profiles/demo.nix
10 ../profiles/clone-config.nix
11 ];
12
13 # FIXME: UUID detection is currently broken
14 boot.loader.grub.fsIdentifier = "provided";
15
16 # Allow mounting of shared folders.
17 users.users.demo.extraGroups = [ "vboxsf" ];
18
19 # Add some more video drivers to give X11 a shot at working in
20 # VMware and QEMU.
21 services.xserver.videoDrivers = mkOverride 40 [ "virtualbox" "vmware" "cirrus" "vesa" "modesetting" ];
22
23 powerManagement.enable = false;
24 system.stateVersion = mkDefault "18.03";
25
26 installer.cloneConfigExtra = ''
27 # Let demo build as a trusted user.
28 # nix.settings.trusted-users = [ "demo" ];
29
30 # Mount a VirtualBox shared folder.
31 # This is configurable in the VirtualBox menu at
32 # Machine / Settings / Shared Folders.
33 # fileSystems."/mnt" = {
34 # fsType = "vboxsf";
35 # device = "nameofdevicetomount";
36 # options = [ "rw" ];
37 # };
38
39 # By default, the NixOS VirtualBox demo image includes SDDM and Plasma.
40 # If you prefer another desktop manager or display manager, you may want
41 # to disable the default.
42 # services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
43 # services.xserver.displayManager.sddm.enable = lib.mkForce false;
44
45 # Enable GDM/GNOME by uncommenting above two lines and two lines below.
46 # services.xserver.displayManager.gdm.enable = true;
47 # services.xserver.desktopManager.gnome.enable = true;
48
49 # Set your time zone.
50 # time.timeZone = "Europe/Amsterdam";
51
52 # List packages installed in system profile. To search, run:
53 # \$ nix search wget
54 # environment.systemPackages = with pkgs; [
55 # wget vim
56 # ];
57
58 # Enable the OpenSSH daemon.
59 # services.openssh.enable = true;
60 '';
61}