stockholm/lass/2configs/wine.nix

28 lines
491 B
Nix
Raw Normal View History

2015-07-16 13:51:01 +00:00
{ config, pkgs, ... }:
let
mainUser = config.users.extraUsers.mainUser;
in {
users.users= {
2015-07-16 13:51:01 +00:00
wine = {
name = "wine";
description = "user for running 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
'';
}