From 6b92d5e973fe217617e77c9d06703c2f26f96b42 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 12 Apr 2015 20:05:24 +0200 Subject: wine.nix: use mainUser --- modules/lass/wine.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/lass') diff --git a/modules/lass/wine.nix b/modules/lass/wine.nix index 68457b058..b9413d662 100644 --- a/modules/lass/wine.nix +++ b/modules/lass/wine.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: -{ +let + mainUser = config.users.extraUsers.mainUser; + +in { environment.systemPackages = with pkgs; [ wineUnstable ]; @@ -15,6 +18,6 @@ }; }; security.sudo.extraConfig = '' - lass ALL=(wine) NOPASSWD: ALL + ${mainUser.name} ALL=(wine) NOPASSWD: ALL ''; } -- cgit v1.2.3