summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-12 20:36:32 +0200
committertv <tv@shackspace.de>2015-05-19 23:17:19 +0200
commit5d3b7e1d7549f97d5cce4ec12bb2cb1f48135279 (patch)
tree2fbb7d0b2d194ab0fbfc76336b25ffa8291eaef5 /modules
parentd82c51177f8865b2911dc8aa05ddcff5cdf344ae (diff)
virtualbox.nix: use mainUser
Diffstat (limited to 'modules')
-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
'';
}