stockholm/lass/2configs/starcraft.nix
2019-10-14 15:40:29 +02:00

23 lines
418 B
Nix

{ config, pkgs, ... }: let
mainUser = config.users.extraUsers.mainUser;
in {
users.users= {
starcraft = {
isNormalUser = true;
extraGroups = [
"audio"
"video"
];
packages = [
pkgs.wineWowPackages.minimal
pkgs.winetricks
pkgs.mpg123
];
};
};
security.sudo.extraConfig = ''
${mainUser.name} ALL=(starcraft) NOPASSWD: ALL
'';
}