From 5d3b7e1d7549f97d5cce4ec12bb2cb1f48135279 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 12 Apr 2015 20:36:32 +0200 Subject: virtualbox.nix: use mainUser --- modules/lass/virtualbox.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 ''; } -- cgit v1.2.3