| 15 May 2024 |
matthewcroughan | steam works perfectly with programs.steam.enable = true; and steamvr + alvr via programs.alvr.enable = true also works very well, via nvidia/sway/vulkan | 21:48:10 |
matthewcroughan | but the problem is that alvr/steamvr timeout due to incredibly poor performance that is only observed in VR. Running the game works perfectly without steamvr | 21:48:36 |
matthewcroughan | the reason is likely due to the lack of capabilities due to fhsenv as outlined in https://github.com/NixOS/nixpkgs/issues/217119 | 21:49:17 |
matthewcroughan | I haven't even been able to verify what happens when you set nvidia.enable = true, though was advised by scrumplex to try hardcoding line 375 here https://github.com/NVIDIA/open-gpu-kernel-modules/blob/083cd9cf17ab95cd6f9fb50a5349c21eaa2f7d4b/kernel-open/nvidia/os-interface.c#L373-L376 | 21:50:48 |
matthewcroughan | * I haven't even been able to verify what happens when you set hardware.nvidia.open.enable = true, though was advised by scrumplex to try hardcoding line 375 here https://github.com/NVIDIA/open-gpu-kernel-modules/blob/083cd9cf17ab95cd6f9fb50a5349c21eaa2f7d4b/kernel-open/nvidia/os-interface.c#L373-L376 | 21:51:18 |
matthewcroughan | How are you supposed to confirm that the nvidia open drivers are loaded and being used? nvidia-smi doesn't really report it | 21:51:49 |
Atemu | Well, yes that's how you'd do it. Here's how he does it for AMDGPU: https://github.com/Scrumplex/pkgs/blob/dab552abe93c42e579cf5b8d8cbed3e286bb173f/kernelPatches/cap_sys_nice_begone.patch#L1 | 21:53:59 |
Atemu | * Well, yes that's how you'd do it. Here's how he does it for AMDGPU: https://github.com/Scrumplex/pkgs/blob/dab552abe93c42e579cf5b8d8cbed3e286bb173f/kernelPatches/cap_sys_nice_begone.patch | 21:54:02 |
matthewcroughan | Yeah I just have trouble confirming that I'm even using the open drivers in any tangible way | 21:54:32 |
Atemu | Can't help you with Nvidia stuff | 21:54:47 |
Atemu | Though I guess just look at the kernel modules? | 21:55:03 |
matthewcroughan | My solution has just been to use makeWindowsImage from github.com/MatthewCroughan/NixThePlanet to make a bootable windows disk, and just run that lol | 21:55:26 |
Atemu | Or simply check the kernel taint; it will tell you when proprietary modules are loaded | 21:55:34 |
matthewcroughan | In reply to @atemu12:matrix.org Though I guess just look at the kernel modules? I believe they're both called nvidia lol | 21:55:58 |
Atemu | Hm | 21:56:07 |
Atemu | Check /run/booted-system/kernel-modules/...? | 21:56:31 |
matthewcroughan | sway even has the same rendering errors, and tells me "you're using proprietary drivers" | 21:56:34 |
Atemu | modinfo etc. | 21:56:42 |
Atemu | Well, you still are | 21:56:45 |
Atemu | It's just the kernel part that's open | 21:56:56 |
matthewcroughan | ah meaning I can perform that patch | 21:57:11 |
Atemu | Yes | 21:57:17 |
matthewcroughan | I suppose this is the channel to mention https://github.com/mbilker/vgpu_unlock-rs?tab=readme-ov-file in, for GPU passthrough, I think it'd be worth making a nixosModule for, but you don't have any nvidia gpus for this | 21:58:04 |
matthewcroughan | this would at least allow me to make a systemd service that runs a windows vm with the nvidia gpu being accessed, for the sole purpose of running steam lol | 21:58:45 |
matthewcroughan | steamvr/alvr all happens wirelessly, so I wouldn't necessarily have to interact with windows all that much if it were set up properly | 21:59:48 |
matthewcroughan | played around with the idea of using makeWindowsImage and the impure-derivations feature to bake windows images that have steam + other stuff pre-installed with games, no FODs necessary | 22:00:19 |
Atemu | I'd rather look into installing Steam offline and mounting the state dirs as network shares or virtiofs if Windows supports that | 22:02:23 |
matthewcroughan | Hmm yeah, clever | 22:02:38 |
Atemu | Downloading games in a Nix drv sounds hairy | 22:02:47 |
matthewcroughan | so makeWindowsImage can do a lot, including executing installers declaratively offline | 22:02:53 |