diff options
author | lassulus <lass@aidsballs.de> | 2015-04-12 20:05:24 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-05-19 23:17:19 +0200 |
commit | 19d87e3fbd12805ec7e2ebdc9bc7bc73197dfd5a (patch) | |
tree | f8af34b2b56238e02021441f47fe59e13968d8a9 /modules | |
parent | 5b55797b3c10e17a29c46206c5719f2b75850ed6 (diff) |
wine.nix: use mainUser
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lass/wine.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/lass/wine.nix b/modules/lass/wine.nix index 68457b0..b9413d6 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 ''; } |