stockholm/lass/2configs/wine.nix
2019-04-07 19:36:05 +02:00

26 lines
425 B
Nix

{ config, pkgs, ... }:
let
mainUser = config.users.extraUsers.mainUser;
in {
users.users= {
wine = {
home = "/home/wine";
useDefaultShell = true;
extraGroups = [
"audio"
"video"
];
createHome = true;
packages = [
pkgs.wine
pkgs.winetricks
];
};
};
security.sudo.extraConfig = ''
${mainUser.name} ALL=(wine) NOPASSWD: ALL
'';
}