summary refs log tree commit diff
path: root/nixos/modules/installer/virtualbox-demo.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-10-21 14:39:59 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-10-21 14:52:49 -0500
commit1902adb4375d3df5a231e41676c3157ebd571beb (patch)
tree97d252b889505b3a7fc94d3fb2652cfa73c1800a /nixos/modules/installer/virtualbox-demo.nix
parent7c3f27dba9c7cb7b6d5329263ac198ea51a0d4b4 (diff)
downloadnixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.tar
nixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.tar.gz
nixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.tar.bz2
nixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.tar.lz
nixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.tar.xz
nixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.tar.zst
nixpkgs-1902adb4375d3df5a231e41676c3157ebd571beb.zip
ova: add cloneConfigExtra option
Customize virtualbox ovas to contain a clone config option giving some
useful hints.

Fixes #38429
Diffstat (limited to 'nixos/modules/installer/virtualbox-demo.nix')
-rw-r--r--nixos/modules/installer/virtualbox-demo.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixos/modules/installer/virtualbox-demo.nix b/nixos/modules/installer/virtualbox-demo.nix
index 8ca3592f380..2e1b4b3998b 100644
--- a/nixos/modules/installer/virtualbox-demo.nix
+++ b/nixos/modules/installer/virtualbox-demo.nix
@@ -22,4 +22,42 @@ with lib;
 
   powerManagement.enable = false;
   system.stateVersion = mkDefault "18.03";
+
+  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";
+  '';
 }