diff options
author | lassulus <lass@aidsballs.de> | 2015-04-12 20:36:32 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-05-19 23:17:19 +0200 |
commit | 9746d445b860b315e9ab6d65d7b2e5a7d26317de (patch) | |
tree | 2fbb7d0b2d194ab0fbfc76336b25ffa8291eaef5 /modules/lass/virtualbox.nix | |
parent | 02288a1919aae988e3d6d687c02ce5962a7235c1 (diff) |
virtualbox.nix: use mainUser
Diffstat (limited to 'modules/lass/virtualbox.nix')
-rw-r--r-- | modules/lass/virtualbox.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/lass/virtualbox.nix b/modules/lass/virtualbox.nix index 93b9db7..82d32bb 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 ''; } |