summaryrefslogtreecommitdiffstats
path: root/modules/lass/wine.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lass/wine.nix')
-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
'';
}