| 23 May 2024 |
matthewcroughan | Hmm, is this proof that my nvidia open patch did something? | 18:59:52 |
matthewcroughan | I've never seen it ask this to me before | 18:59:59 |
Atemu | No | 19:00:00 |
Atemu | A SteamVR update is more likely | 19:00:15 |
matthewcroughan | Well now it's quite imperative that this be resolved, because the script is related to CAP_SYS_NICE | 19:01:10 |
matthewcroughan | which is exactly what I modified to always return true in the nvidia driver | 19:01:17 |
matthewcroughan | Ah I think I know.. | 19:02:56 |
matthewcroughan | diff --git a/pkgs/os-specific/linux/nvidia-x11/open.nix b/pkgs/os-specific/linux/nvidia-x11/open.nix
index a6795c3fd5e7..6cef14dbd4c0 100644
--- a/pkgs/os-specific/linux/nvidia-x11/open.nix
+++ b/pkgs/os-specific/linux/nvidia-x11/open.nix
@@ -20,6 +20,10 @@ stdenv.mkDerivation ({
nativeBuildInputs = kernel.moduleBuildDependencies;
+ prePatch = ''
+ substituteInPlace kernel-open/nvidia/os-interface.c --replace 'return capable(CAP_SYS_NICE);' 'return 1;'
+ '';
+
makeFlags = kernel.makeFlags ++ [
"SYSSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
"SYSOUT=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
| 19:03:23 |
matthewcroughan | I set it to 1 when I should have set it to 0 right? | 19:03:31 |
Atemu | 0 is true AFAIK | 19:04:41 |
matthewcroughan | yeah god damn it | 19:04:50 |
matthewcroughan | but in shell, is 0 also true? | 19:05:19 |
Atemu | In reply to @matthewcroughan:defenestrate.it Well now it's quite imperative that this be resolved, because the script is related to CAP_SYS_NICE It's what's supposed to give privileges to SteamVR | 19:05:57 |
Atemu | But that only works when steam is ran natively | 19:06:12 |
Atemu | In reply to @matthewcroughan:defenestrate.it but in shell, is 0 also true? I think so | 19:07:13 |
Atemu | True is empty string | 19:07:21 |
Atemu | * False is empty string | 19:07:52 |
matthewcroughan | In reply to @atemu12:matrix.org But that only works when steam is ran natively is it actually possible to run steam natively? | 19:32:58 |
matthewcroughan | why is it in an fhsenv anyway | 19:33:02 |
matthewcroughan | Il'l review https://github.com/NixOS/nixpkgs/pull/293540/files now that I have the chance to cherry pick it | 19:36:47 |
matthewcroughan | * l'll review https://github.com/NixOS/nixpkgs/pull/293540/files now that I have the chance to cherry pick it | 19:36:54 |
matthewcroughan | Atemu: I run into this a lot too, https://github.com/NixOS/nixpkgs/issues/292139 | 19:40:22 |
matthewcroughan | though it happens for me with steamvr | 20:31:31 |
matthewcroughan | https://termbin.com/r1k9 | 20:32:18 |
matthewcroughan | some logs | 20:32:21 |
Tumble | i find things work if i dont enable nix-ld | 20:32:46 |
Tumble | not everything though | 20:33:04 |
matthewcroughan | I don't have that enabled, never have | 20:33:27 |
Tumble | do you have any impermenance enabled? | 20:33:58 |
matthewcroughan | nope, just a basic nixos machine | 20:34:05 |