summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-12 20:05:24 +0200
committertv <tv@krebsco.de>2015-05-19 23:17:19 +0200
commit19d87e3fbd12805ec7e2ebdc9bc7bc73197dfd5a (patch)
treef8af34b2b56238e02021441f47fe59e13968d8a9 /modules
parent5b55797b3c10e17a29c46206c5719f2b75850ed6 (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 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
'';
}