stockholm/lass/2configs/wine.nix

26 lines
446 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 = {
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 = [
2021-06-05 10:17:19 +00:00
pkgs.wineWowPackages.stable
2017-11-29 15:21:30 +00:00
];
2021-06-05 10:17:19 +00:00
isNormalUser = true;
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
'';
}