stockholm/modules/lass/virtualbox.nix
2015-05-19 23:17:19 +02:00

20 lines
394 B
Nix

{ 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;
};
};
security.sudo.extraConfig = ''
lass ALL=(virtual) NOPASSWD: ALL
'';
}