summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-12 20:05:24 +0200
committertv <tv@shackspace.de>2015-05-19 23:17:19 +0200
commit6b92d5e973fe217617e77c9d06703c2f26f96b42 (patch)
treef8af34b2b56238e02021441f47fe59e13968d8a9 /modules
parented285405f8767f470f7110a5ec4b4d923206aa9c (diff)
wine.nix: use mainUser
Diffstat (limited to 'modules')
-rw-r--r--modules/lass/wine.nix7
1 files changed, 5 insertions, 2 deletions
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
'';
}