summaryrefslogtreecommitdiffstats
path: root/modules/lass/virtualbox.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-10 01:37:29 +0200
committertv <tv@shackspace.de>2015-05-19 23:17:19 +0200
commitaa5d113f90c29f483aa679738dc52e5df1763fec (patch)
tree9be801304c8331bc211ad738836b3f3a03e74cea /modules/lass/virtualbox.nix
parent6593d16308109ded64d5c842d6a12c4106767df4 (diff)
mors: import mors + config
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;
+ };
+ };
+}