summaryrefslogtreecommitdiffstats
path: root/modules/lass
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lass')
-rw-r--r--modules/lass/virtualbox.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/lass/virtualbox.nix b/modules/lass/virtualbox.nix
index 93b9db765..82d32bb1a 100644
--- a/modules/lass/virtualbox.nix
+++ b/modules/lass/virtualbox.nix
@@ -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
'';
}