summaryrefslogtreecommitdiffstats
path: root/modules/lass/virtualbox.nix
blob: 93b9db765608efa48ca49cf8b7d215792e84cff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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
  '';
}