2015-07-16 13:51:01 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
mainUser = config.users.extraUsers.mainUser;
|
|
|
|
|
|
|
|
in {
|
2017-05-09 20:49:54 +00:00
|
|
|
users.users= {
|
2015-07-16 13:51:01 +00:00
|
|
|
wine = {
|
|
|
|
home = "/home/wine";
|
|
|
|
useDefaultShell = true;
|
2017-07-10 17:49:14 +00:00
|
|
|
extraGroups = [
|
|
|
|
"audio"
|
|
|
|
"video"
|
|
|
|
];
|
2015-07-16 13:51:01 +00:00
|
|
|
createHome = true;
|
2017-11-29 15:21:30 +00:00
|
|
|
packages = [
|
|
|
|
pkgs.wine
|
2018-06-27 21:58:44 +00:00
|
|
|
pkgs.winetricks
|
2017-11-29 15:21:30 +00:00
|
|
|
];
|
|
|
|
};
|
2015-07-16 13:51:01 +00:00
|
|
|
};
|
|
|
|
security.sudo.extraConfig = ''
|
|
|
|
${mainUser.name} ALL=(wine) NOPASSWD: ALL
|
|
|
|
'';
|
|
|
|
}
|