!KEJUbONnoBpiYKGWEq:nixos.org

NixOS Gaming

703 Members
Gaming things, my hands are typing words.179 Servers

Load older messages


SenderMessageTime
12 Jan 2024
@pedrohlc:ubiquelambda.devpedrohlc ⚡️

For reference, he's my makeModulesClosure overlay:

final: prev: {
  makeModulesClosure = args: (prev.makeModulesClosure args).overrideAttrs (prevAttrs: {
    builder = final.runCommand "modules-closure.sh" { } ''
      cat ${prevAttrs.builder} > $out
      chmod +x $out
      echo 'rm -rf "$out/lib/firmware/nvidia"' >> $out
      echo 'mkdir -p "$out/lib/firmware/nvidia"' >> $out
      echo 'cp --no-preserve=mode -r "$firmware/lib/firmware/nvidia/ga10"{2,7} "$out/lib/firmware/nvidia/"' >> $out
      echo 'pushd "$out/lib/firmware/nvidia/ga107"' >> $out
      echo 'rm -rf gsp.xz' >> $out
      echo 'ln -s ../ga102/gsp ./gsp' >> $out
      echo 'popd' >> $out
    '';
  });
}
14:25:40
@pedrohlc:ubiquelambda.devpedrohlc ⚡️ *

In case someone wants to play with NVK+GSP:

  • first you need Linux 6.7 with latest stable firmware and mesa-git;
  • then you need to fix the symlink of your GPU in linux-firwmare or makeModulesClosure (it's symlinking "gsp.xz" instead of "gsp", and needs to copy "nvidia" folder in the closure)
  • since you're already touching the closure, remove all the other GPUs to save 60Mb in your initrd
  • make sure to not enable hardware.nvidia
  • boot.kernelParams = [ "nouveau.config=NvGspRm=1" "nouveau.debug=\"GSP=debug\"" ];
  • Now, you should be able to see the firmware loading in dmesg;
  • Downgrade DXVK by adding the 1.10.3 DLLs in the game's folder

And that's it right now, everything requiring Vulkan 1.2+ is a no-go

14:27:45
@atemu12:matrix.org@atemu12:matrix.org pedrohlc ⚡️: It'd be great to turn that into a wiki article 15:13:38
@atemu12:matrix.org@atemu12:matrix.orgOr, even better, turn it into a better integrated NixOS option to do that from the start15:14:19
@atemu12:matrix.org@atemu12:matrix.orgPeople will want to use NVK probably rather soon15:14:34
@atemu12:matrix.org@atemu12:matrix.org * People will want to start using NVK probably rather soon15:14:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Atemu: probably need to wait for a mesa release before something like that can go into nixpkgs 15:15:53
@atemu12:matrix.org@atemu12:matrix.orgI don't see why we couldn't get the kernel module stuff figured out earlier?15:16:39
@k900:0upti.meK900 Is the linux-firmware thing a make-modules-closure bug or an upstream linux-firmware bug? 15:16:44
@k900:0upti.meK900 Cause it's clearly a bug 15:16:49
@atemu12:matrix.org@atemu12:matrix.orgAlso, can't nouveau (OGL) benefit from re-clocking too now?15:17:15
@pedrohlc:ubiquelambda.devpedrohlc ⚡️
In reply to @atemu12:matrix.org
Also, can't nouveau (OGL) benefit from re-clocking too now?
nouveau + those specific GPUs, yes
15:18:08
@pedrohlc:ubiquelambda.devpedrohlc ⚡️
In reply to @k900:0upti.me
Is the linux-firmware thing a make-modules-closure bug or an upstream linux-firmware bug?
I didn't debug, just noted that our latest derivation generates that gsp.xz, and if you bump to latest commit there is none link at all
15:18:53
@k900:0upti.meK900 The .xz should be fine 15:19:10
@k900:0upti.meK900The kernel knows how to handle those15:19:16
@k900:0upti.meK900If the symlink isn't broken 15:19:21
@pedrohlc:ubiquelambda.devpedrohlc ⚡️
In reply to @k900:0upti.me
If the symlink isn't broken

Either:

  1. The "gsp" folder should be xz-ed during the make of linux-firmware and, for some reason, it isn't
  2. During the link creation, the .xz suffix is being wrongly added
18:40:04
13 Jan 2024
@xx_doomer_xx:matrix.orgsimple-coderRedacted or Malformed Event02:29:32
@nat:nekopon.plnat ✩彡 changed their profile picture.20:14:32
14 Jan 2024
@guanran928:mozilla.orgCharles He removed their profile picture.02:56:07
@ggaast:matrix.orggaata changed their profile picture.20:16:54
@ggaast:matrix.orggaata changed their display name from gaata to Vash.20:17:25
15 Jan 2024
@jacobp:matrix.orgJacob changed their profile picture.06:47:06
@jacobp:matrix.orgJacob removed their profile picture.06:48:18
@charles:computer.surgeryCharles ⚡️
In reply to @charles:computer.surgery
also, someday we'll have mesa 23.3.1 on nixos-unstable...
looks like that day came
08:44:25
@charles:computer.surgeryCharles ⚡️well, 23.3.3 but close enough08:44:33
@charles:computer.surgeryCharles ⚡️maybe we'll get a 33.3.3 in 10 years08:45:16
@k900:0upti.meK900 I wonder if 33.3.3 will have 4k120 HDMI lol 08:47:27
@charles:computer.surgeryCharles ⚡️lmao08:47:36
@k900:0upti.meK900The year is 20xx, humanity is entirely controlled by the HDMI Forum 08:48:26

Show newer messages


Back to Room ListRoom Version: 6