2015-04-09 23:37:29 +00:00
|
|
|
{ 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;
|
|
|
|
};
|
|
|
|
};
|
2015-04-10 11:30:12 +00:00
|
|
|
security.sudo.extraConfig = ''
|
|
|
|
lass ALL=(virtual) NOPASSWD: ALL
|
|
|
|
'';
|
2015-04-09 23:37:29 +00:00
|
|
|
}
|