From NixOS Wiki
Revision as of 07:14, 6 June 2024 by Giggio (talk | contribs) (Remove x11 option, which does not exist anymore)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NixOS Installation

VirtualBox can be installed on NixOS without problems, put this snippet in your configuration.nix

{ = true;
   users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];

Adding users to the group vboxusers allows them to use the virtualbox functionality.

VirtualBox Oracle Extensions

Note: This package is unfree. Read the FAQ entry to know how to use unfree packages.

Oracle VirtualBox Extensions are required if you want to forward usb2 or usb3 to your guests. The Extensions are unfree.

   nixpkgs.config.allowUnfree = true; = true; = true;
Warning: Host extensions cause frequent recompilation.

Possible solutions:

VirtualBox Guest Additions

  virtualisation.virtualbox.guest.enable = true;
  virtualisation.virtualbox.guest.draganddrop = true;

See also