summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-01-19 13:31:35 +0100
committerjeschli <jeschli@gmail.com>2018-01-19 13:31:35 +0100
commit9344169ef20bf7390763978f6ebdf0ca07c8b279 (patch)
treec9c89f44d553feec38365fb4c353528de1197ec6 /jeschli/2configs
parent7b4bb4646815beafb56782b7934fbc755602dcc4 (diff)
parent3131b72a7c2a260e2f985a0fc8abccae7cce9280 (diff)
Merge branch 'staging/jeschli' of prism.r:stockholm
Diffstat (limited to 'jeschli/2configs')
-rw-r--r--jeschli/2configs/virtualbox.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/jeschli/2configs/virtualbox.nix b/jeschli/2configs/virtualbox.nix
new file mode 100644
index 000000000..b2cb851a1
--- /dev/null
+++ b/jeschli/2configs/virtualbox.nix
@@ -0,0 +1,23 @@
+{ config, pkgs, ... }:
+
+let
+ mainUser = config.users.extraUsers.markus;
+
+in {
+ #services.virtualboxHost.enable = true;
+ virtualisation.virtualbox.host.enable = true;
+
+ users.extraUsers = {
+ virtual = {
+ name = "virtual";
+ description = "user for running VirtualBox";
+ home = "/home/virtual";
+ useDefaultShell = true;
+ extraGroups = [ "vboxusers" "audio" ];
+ createHome = true;
+ };
+ };
+ security.sudo.extraConfig = ''
+ ${mainUser.name} ALL=(virtual) NOPASSWD: ALL
+ '';
+}