diff options
author | jeschli <jeschli@gmail.com> | 2018-01-21 10:40:42 +0000 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2018-01-21 10:40:42 +0000 |
commit | 7d0c94e36a0e1a90d4fc69de23467b67b01c9bdd (patch) | |
tree | 201c9c95b54f59c1434e8afa2df0eeb2d9b780c2 /jeschli/2configs/virtualbox.nix | |
parent | baf4fc520b9faae6ad07c1b9f6d6623b92768ce6 (diff) | |
parent | 3bd62207d4b60db4ca5f89bb84dc842b62bdfbaf (diff) |
Merge branch 'master' of prism.i:stockholm
Diffstat (limited to 'jeschli/2configs/virtualbox.nix')
-rw-r--r-- | jeschli/2configs/virtualbox.nix | 23 |
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 + ''; +} |