From 0caac714fb947d078c1104f908cfcfcb6deae5e4 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 23 Jan 2024 17:45:30 +0100 Subject: [PATCH] add virtualbox --- hosts/yodaTux/configuration.nix | 1 + modules/virtualbox.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 modules/virtualbox.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 355c890..4ff48cd 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -48,6 +48,7 @@ ../../modules/autostart.nix ../../modules/boxes.nix + #../../modules/virtualbox.nix ../../modules/jetbrains-ide.nix ../../modules/vscodium.nix ../../modules/android.nix diff --git a/modules/virtualbox.nix b/modules/virtualbox.nix new file mode 100644 index 0000000..331f42e --- /dev/null +++ b/modules/virtualbox.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: +{ + # https://nixos.wiki/wiki/VirtualBox + + # VirtualBox + virtualisation.virtualbox.host.enable = true; + users.extraGroups.vboxusers.members = [ "yoda" ]; + + # Oracle Extensions + # Warning: Host extensions cause frequent recompilation. If USB forwarding is only advanced feature used in virtualization, then consider using an open-source virtualization solution such as GNOME Boxes or Virt-manager. + virtualisation.virtualbox.host.enableExtensionPack = true; + + # Guest Additions + #virtualisation.virtualbox.guest.enable = true; + #virtualisation.virtualbox.guest.x11 = true; +}