Working Cyberpunk2077!

This commit is contained in:
2023-01-12 02:17:51 -05:00
commit d9fb493810
2 changed files with 75 additions and 0 deletions

42
flake.lock generated Normal file
View File

@@ -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
}

33
flake.nix Normal file
View File

@@ -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
};
}
));
}