From 96bbfca2d921654586e72a96a5e5cf931b312ec0 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 4 Dec 2023 10:05:28 -0600 Subject: [PATCH] Add readme --- .gitignore | 1 + flake.nix | 7 +------ readme.md | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 readme.md diff --git a/.gitignore b/.gitignore index 7ad6275..6f8ecdb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /.direnv +/wineprefix diff --git a/flake.nix b/flake.nix index 16803ca..4efa076 100644 --- a/flake.nix +++ b/flake.nix @@ -1,12 +1,7 @@ { inputs.nixpkgs.url = "github:nixos/nixpkgs?rev=91050ea1e57e50388fa87a3302ba12d188ef723a"; - outputs = { - self, - nixpkgs, - ... - }: let - # inherit (self) outputs; + outputs = {nixpkgs, ...}: let systems = [ "aarch64-linux" "x86_64-linux" diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b3a0dfe --- /dev/null +++ b/readme.md @@ -0,0 +1,16 @@ +# Battle.net Nix Flake + +Sort of. + +## Usage + +1. Download the Battle.net setup: https://download.battle.net/?product=bnetdesk +2. Clone and `nix develop .` (or use direnv and `direnv allow`) +3. Follow https://nixos.wiki/wiki/Battle.net + +```shell +export WINEARCH=win64 +export WINEPREFIX=$PWD/wineprefix +winetricks dxvk +wine64 $BATTLENET_SETUP +```