virtualbox.nix: use mainUser
This commit is contained in:
parent
d82c51177f
commit
5d3b7e1d75
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user