Build wineprefixes through nix
readme.org
* NixWine

Tooling to produce ready to use wine/proton applications with nix

** Apps

American McGee's Alice (base game):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.american-mcgee-alice
#+end_src

Alice: Dreamland (total conversion mod):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.american-mcgee-alice-dreamland
#+end_src

Alice: Madly Enhanced (enhancement mod):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.american-mcgee-alice-madly-enhanced
#+end_src

Psychotoxic: Gateway to Hell:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.psychotoxic
#+end_src

Peggle Deluxe:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.peggle-deluxe
#+end_src

Peggle Nights (with the Spring Fever, Holiday and Art Contest level packs):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.peggle-nights
#+end_src

Peggle Dinners (total conversion mod of Peggle Nights):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.peggle-nights-dinners
#+end_src

Peggle Extreme:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.peggle-extreme
#+end_src

Peggle: World of Warcraft Edition:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.peggle-wow
#+end_src

Pego (the August 2006 Peggle prototype):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.pego
#+end_src

Zuma Deluxe:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.zuma-deluxe
#+end_src

Bejeweled 3:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.bejeweled-3
#+end_src

Grand Theft Auto III (1.0, with SilentPatch and the widescreen fix):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.gta3
#+end_src

Grand Theft Auto: Vice City (1.0, with SilentPatch and the widescreen fix):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.gta-vice-city
#+end_src

Grand Theft Auto: San Andreas (1.0 US, with SilentPatch and the widescreen fix):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.gta-san-andreas
#+end_src

Grand Theft Auto IV (1.0.8.0, with FusionFix and without Games for Windows Live):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.gta-iv
#+end_src

Fable III:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.fable-iii
#+end_src

GTA Anime City: Anime Lawlessness 2:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.gta3-anime-city
#+end_src

Tony Hawk's Pro Skater 4 (with the Better4 modpack):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.thps4
#+end_src

Max Payne

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.max-payne
#+end_src

The Typing of the Dead:

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.typing-of-the-dead
#+end_src

The Typing of the Dead 2 (1.01, Japanese):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.typing-of-the-dead-2
#+end_src

Vampire: The Masquerade Bloodlines (with the unofficial patch):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.vtmb
#+end_src

Vampire: The Masquerade Redemption (1.1, with the widescreen fix):

#+begin_src sh
nix run git+https://tangled.org/evil-nix.tngl.sh/nix-wine#winepkgs.apps.vtmr
#+end_src

** Overrides

*** Grand Theft Auto III

| Argument              | Default          | Effect                                                     |
|-----------------------+------------------+------------------------------------------------------------|
| ~frameRate~           | ~60~             | Caps framerate by default to avoid game bugs at high fps   |
| ~menuMap~             | ~false~          | Adds an interactive map to the game                        |
| ~skins~               | ~[ ]~            | Player skins for Options -> Player Skin Setup              |

#+begin_src nix
winepkgs.apps.gta3.override {
  frameRate = 144;
  menuMap = true;
  skins = [ "deathcold-collection" ./my-own-skin.bmp ];
}
#+end_src

A ~skins~ entry is either the name of a pack from ~pkgs/apps/gta3/skins.nix~ or a
path to a .bmp of your own. The game lists each skin by its filename.

| Name                    | Skins | Contents                                                  |
|-------------------------+-------+-----------------------------------------------------------|
| ~deathcold~             |     9 | Claude variants, Tommy, Huang Lee, the Double Dragon Lees |
| ~deathcold-collection~  |    81 | Series protagonists, horror, retro games, Serious Sam     |
| ~morpheus~              |     1 | Morpheus                                                  |
| ~solid-snake~           |     1 | Solid Snake                                               |
| ~t-800~                 |     1 | T-800 Model 101                                           |

*** Grand Theft Auto: Vice City

| Argument              | Default          | Effect                                                     |
|-----------------------+------------------+------------------------------------------------------------|
| ~frameRate~           | ~60~             | Caps framerate by default to avoid game bugs at high fps   |
| ~menuMap~             | ~false~          | Adds an interactive map to the game                        |
| ~skins~               | ~[ ]~            | Player skins for Options -> Player Skin Setup              |

#+begin_src nix
winepkgs.apps.gta-vice-city.override {
  frameRate = 144;
  menuMap = true;
  skins = [ "ebgames-tommy" "deathcold-characters" ];
}
#+end_src

A ~skins~ entry is either the name of a pack from
~pkgs/apps/gta-vice-city/skins.nix~ or a path to a .bmp of your own. The game
lists each skin by its filename.

| Name                    | Skins | Contents                                                  |
|-------------------------+-------+-----------------------------------------------------------|
| ~ebgames-tommy~         |     1 | Tommy from the EB Games pre-order bonus disc              |
| ~gamestop-tommy~        |     1 | Tommy from the GameStop pre-order bonus disc              |
| ~deathcold~             |     7 | Beta Tommy, Tony Montana, John Tanner, Jack Carver        |
| ~deathcold-characters~  |    12 | Cortez, Kent Paul, Diaz, Victor Vance and other regulars  |

*** Grand Theft Auto: San Andreas

| Argument              | Default          | Effect                                                     |
|-----------------------+------------------+------------------------------------------------------------|
| ~frameRate~           | ~60~             | Caps framerate by default to avoid game bugs at high fps   |

#+begin_src nix
winepkgs.apps.gta-san-andreas.override {
  frameRate = 144;
}
#+end_src

*** American McGee's Alice

| Argument              | Default     | Effect                                        |
|-----------------------+-------------+-----------------------------------------------|
| ~language~            | ~"english"~ | One of english, french, german, spanish, dutch |
| ~highQualityTextures~ | ~true~      | Picks pak1_large over pak1_small              |

*** Tony Hawk's Pro Skater 4

| Argument       | Default | Effect                                                            |
|----------------+---------+-------------------------------------------------------------------|
| ~windowed~     | ~true~  | Borderless window at the desktop resolution instead of a modeset  |

#+begin_src nix
winepkgs.apps.thps4.override {
  windowed = false;
}
#+end_src

Everything else Better4 exposes lives in ~better4.ini~ in the game directory,
which is writable and can also be edited with ~better4config.exe~.

*** Max Payne

| Argument         | Default                        | Effect                                                     |
|------------------+--------------------------------+------------------------------------------------------------|
| ~windowed~       | ~true~                         | Renders into a window rather than taking over the display  |

#+begin_src nix
winepkgs.apps.max-payne.override {
  windowed = false;
}
#+end_src

*** The Typing of the Dead 2

| Argument         | Default                        | Effect                                                     |
|------------------+--------------------------------+------------------------------------------------------------|
| ~englishPatch~   | ~true~                         | Machine translated menus and the sprites that carry text   |

#+begin_src nix
winepkgs.apps.typing-of-the-dead-2.override {
  englishPatch = false;
}
#+end_src

*** Vampire: The Masquerade Redemption

| Argument       | Default | Effect                                                     |
|----------------+---------+------------------------------------------------------------|
| ~widescreen~   | ~true~  | behar's widescreen fix                                     |
| ~windowed~     | ~true~  | Runs gamescope in a window rather than taking the display  |
| ~width~        | ~1920~  | Render width                                               |
| ~height~       | ~1080~  | Render height (can be changed during runtime)              |

#+begin_src nix
winepkgs.apps.vtmr.override {
  width = 2560;
  height = 1080;
}
#+end_src