From d9fb493810d53f1463529345678a3e2d4de742fb Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Thu, 12 Jan 2023 02:17:51 -0500 Subject: [PATCH] Working Cyberpunk2077! --- flake.lock | 42 ++++++++++++++++++++++++++++++++++++++++++ flake.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4174182 --- /dev/null +++ b/flake.lock @@ -0,0 +1,42 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1673488896, + "narHash": "sha256-mD0LchjWSTwBUy20nTfnMF1QlPa1AV+YYyr6BVzGJMQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c9c4aea7ab0d137c62e09300d874be8a9a6820fc", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ce2a8b6 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "Env for Cyberpunk"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, flake-utils }: + (flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + overlays = [ ]; + }; + in { + devShell = pkgs.mkShell { + buildInputs = with pkgs; [ + wineWowPackages.staging + winetricks + samba # for ntlm shenanigans + ]; + WINEARCH="win64"; + WINEPREFIX="/home/nathan/.wine-cyberpunk2077"; # or W/E + # winecfg # make prefix by running winecfg + # install vkd3d-proton from https://github.com/HansKristian-Work/vkd3d-proton/releases/tag/v2.8 by running the script + # wine64 ./setup_cyberpunk_2077_1.61_\(64bit\)_\(60064\).exe # then run the installer + # winetricks win10 nocrashdialog fontsmooth=rgb sound=pulse # extra winetricks stuff from https://www.reddit.com/r/linux_gaming/comments/n9mtr0/burning_crusade_beta_classic_wine_errors/ + # cd ~/.wine-cyberpunk2077/dosdevices/c:/GOG Games/Cyberpunk 2077 + # env VKD3D_CONFIG=dxr11 VKD3D_FEATURE_LEVEL=12_1 WINEPREFIX="/home/nathan/.wine-cyberpunk2077" wine ../../users/Public/Desktop/Cyberpunk\ 2077.lnk + # (pulled from the desktop file) plus https://forum.manjaro.org/t/cyberpunk-2077-crashed-since-the-stable-update-2022-12-06/129153/2 + }; + } + )); +}