summaryrefslogtreecommitdiffstats
path: root/lass/2configs/starcraft.nix
blob: 742b877e83125382e1ec13a7fd483900c7c78c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ config, pkgs, ... }: let
  mainUser = config.users.extraUsers.mainUser;
  newWine = pkgs.wineStaging;
  #newWine = pkgs.wineStaging.overrideAttrs (old: {
  #  name = "wine-3.7";
  #  buildInputs = old.buildInputs ++ [
  #    pkgs.libuuid.bin
  #    pkgs.autoconf.out
  #  ];
  #  src = pkgs.fetchurl {
  #    url = "https://dl.winehq.org/wine/source/3.x/wine-3.7.tar.xz";
  #    sha256 = "1drbzk3y0m14lkq3vzwwkvain5shykgcbmyzh6gcb5r4sxh3givn";
  #  };
  #  postPatch = old.postPatch or "" + ''
  #    patchShebangs tools
  #    cp -r ${pkgs.fetchFromGitHub {
  #      sha256 = "0kam73jqhah7bzji5csxxhhfdp6byhzpcph6xnzjqz2aic5xk7xi";
  #      owner = "wine-staging";
  #      repo = "wine-staging";
  #      rev = "v3.7";
  #    }}/patches .
  #    chmod +w patches
  #    cd patches
  #    patchShebangs gitapply.sh
  #    ./patchinstall.sh DESTDIR="$PWD/.." --all
  #    cd ..
  #  '';

  #});
  #newWine = (import (builtins.fetchGit {
  #  url = "https://github.com/NixOS/nixpkgs";
  #  rev = "696c6bed4e8e2d9fd9b956dea7e5d49531e9d13f";
  #}) {}).wineStaging;
in {
  users.users= {
    starcraft = {
      isNormalUser = true;
      extraGroups = [
        "audio"
        "video"
      ];
      packages = [
        newWine
        pkgs.winetricks
        pkgs.mpg123
      ];
    };
  };
  security.sudo.extraConfig = ''
    ${mainUser.name} ALL=(starcraft) NOPASSWD: ALL
  '';
}