j bln: +virtualbox

This commit is contained in:
Markus Hihn 2018-01-19 10:36:35 +01:00
parent bdd7a76f4d
commit 3131b72a7c
2 changed files with 24 additions and 0 deletions

View File

@ -8,6 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
<stockholm/jeschli> <stockholm/jeschli>
<stockholm/jeschli/2configs/virtualbox.nix>
./hardware-configuration.nix ./hardware-configuration.nix
# ./dcso-vpn.nix # ./dcso-vpn.nix
]; ];

View File

@ -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
'';
}