summaryrefslogtreecommitdiffstats
path: root/modules/lass/virtualbox.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lass/virtualbox.nix')
-rw-r--r--modules/lass/virtualbox.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/lass/virtualbox.nix b/modules/lass/virtualbox.nix
new file mode 100644
index 000000000..bd57077b7
--- /dev/null
+++ b/modules/lass/virtualbox.nix
@@ -0,0 +1,16 @@
+{ config, pkgs, ... }:
+
+{
+ services.virtualboxHost.enable = true;
+
+ users.extraUsers = {
+ virtual = {
+ name = "virtual";
+ description = "user for running VirtualBox";
+ home = "/home/virtual";
+ useDefaultShell = true;
+ extraGroups = [ "vboxusers" ];
+ createHome = true;
+ };
+ };
+}