about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-06 17:41:26 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-06 17:44:59 +0200
commitc9cb073985bc93c88d92efa778b9deaba5c9a422 (patch)
treed63c0df09e0997cc84fbf5f416bd7b39190b86df /modules
parentAdd ntfs support (diff)
downloadnixos-config-c9cb073985bc93c88d92efa778b9deaba5c9a422.tar.gz
nixos-config-c9cb073985bc93c88d92efa778b9deaba5c9a422.tar.bz2
nixos-config-c9cb073985bc93c88d92efa778b9deaba5c9a422.zip
Module: Virtualisation: Add virtualbox
Diffstat (limited to 'modules')
-rw-r--r--modules/virtualisation/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/virtualisation/default.nix b/modules/virtualisation/default.nix
index 1ce28f0..6f8c3a6 100644
--- a/modules/virtualisation/default.nix
+++ b/modules/virtualisation/default.nix
@@ -4,7 +4,17 @@
   virtualisation = {
     docker.enable = true;
     libvirtd.enable = true;
+    virtualbox = {
+      host = {
+        enable = true;
+      };
+      guest = {
+        enable = true;
+        x11 = true;
+      };
+    };
   };
 
   users.users.${user}.extraGroups = [ "docker" "libvirtd" ];
+  users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
 }