summaryrefslogtreecommitdiffstats
path: root/lass/2configs/starcraft.nix
blob: c95a610e7a164f55649cd0980ba345efaed2c609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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
  '';
}