wine.nix: use mainUser

This commit is contained in:
lassulus 2015-04-12 20:05:24 +02:00 committed by tv
parent ed285405f8
commit 6b92d5e973

View File

@ -1,6 +1,9 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ let
mainUser = config.users.extraUsers.mainUser;
in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wineUnstable wineUnstable
]; ];
@ -15,6 +18,6 @@
}; };
}; };
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
lass ALL=(wine) NOPASSWD: ALL ${mainUser.name} ALL=(wine) NOPASSWD: ALL
''; '';
} }