virtualbox.nix: use mainUser

This commit is contained in:
lassulus 2015-04-12 20:36:32 +02:00 committed by tv
parent d82c51177f
commit 5d3b7e1d75

View File

@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{
let
mainUser = config.users.extraUsers.mainUser;
in {
services.virtualboxHost.enable = true;
users.extraUsers = {
@ -14,6 +17,6 @@
};
};
security.sudo.extraConfig = ''
lass ALL=(virtual) NOPASSWD: ALL
${mainUser.name} ALL=(virtual) NOPASSWD: ALL
'';
}