20 lines
394 B
Nix
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
|
|
'';
|
|
}
|