2015-04-09 23:37:29 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2015-04-12 18:05:24 +00:00
|
|
|
let
|
|
|
|
mainUser = config.users.extraUsers.mainUser;
|
|
|
|
|
|
|
|
in {
|
2015-04-09 23:40:22 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2015-04-10 01:03:34 +00:00
|
|
|
wineUnstable
|
2015-04-09 23:40:22 +00:00
|
|
|
];
|
2015-04-09 23:37:29 +00:00
|
|
|
users.extraUsers = {
|
2015-04-09 23:42:03 +00:00
|
|
|
wine = {
|
|
|
|
name = "wine";
|
|
|
|
description = "user for running wine";
|
|
|
|
home = "/home/wine";
|
2015-04-09 23:37:29 +00:00
|
|
|
useDefaultShell = true;
|
|
|
|
extraGroups = [];
|
|
|
|
createHome = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
security.sudo.extraConfig = ''
|
2015-04-12 18:05:24 +00:00
|
|
|
${mainUser.name} ALL=(wine) NOPASSWD: ALL
|
2015-04-09 23:37:29 +00:00
|
|
|
'';
|
|
|
|
}
|