!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

578 Members
Gaming things, my hands are typing words.160 Servers

Load older messages


SenderMessageTime
23 May 2024
@matthewcroughan:defenestrate.itmatthewcroughanHmm, is this proof that my nvidia open patch did something?18:59:52
@matthewcroughan:defenestrate.itmatthewcroughanI've never seen it ask this to me before 18:59:59
@atemu12:matrix.orgAtemuNo19:00:00
@atemu12:matrix.orgAtemuA SteamVR update is more likely19:00:15
@matthewcroughan:defenestrate.itmatthewcroughanWell now it's quite imperative that this be resolved, because the script is related to CAP_SYS_NICE19:01:10
@matthewcroughan:defenestrate.itmatthewcroughanwhich is exactly what I modified to always return true in the nvidia driver 19:01:17
@matthewcroughan:defenestrate.itmatthewcroughanAh I think I know..19:02:56
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughanI set it to 1 when I should have set it to 0 right?19:03:31
@atemu12:matrix.orgAtemu0 is true AFAIK19:04:41
@matthewcroughan:defenestrate.itmatthewcroughanyeah god damn it19:04:50
@matthewcroughan:defenestrate.itmatthewcroughanbut in shell, is 0 also true?19:05:19
@atemu12:matrix.orgAtemu
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
@atemu12:matrix.orgAtemuBut that only works when steam is ran natively19:06:12
@atemu12:matrix.orgAtemu
In reply to @matthewcroughan:defenestrate.it
but in shell, is 0 also true?
I think so
19:07:13
@atemu12:matrix.orgAtemuTrue is empty string19:07:21
@atemu12:matrix.orgAtemu * False is empty string19:07:52
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughanwhy is it in an fhsenv anyway19:33:02
@matthewcroughan:defenestrate.itmatthewcroughanIl'l review https://github.com/NixOS/nixpkgs/pull/293540/files now that I have the chance to cherry pick it19:36:47
@matthewcroughan:defenestrate.itmatthewcroughan * l'll review https://github.com/NixOS/nixpkgs/pull/293540/files now that I have the chance to cherry pick it19:36:54
@matthewcroughan:defenestrate.itmatthewcroughan Atemu: I run into this a lot too, https://github.com/NixOS/nixpkgs/issues/292139 19:40:22
@matthewcroughan:defenestrate.itmatthewcroughanthough it happens for me with steamvr 20:31:31
@matthewcroughan:defenestrate.itmatthewcroughanhttps://termbin.com/r1k920:32:18
@matthewcroughan:defenestrate.itmatthewcroughansome logs 20:32:21
@tumble1999:matrix.orgTumblei find things work if i dont enable nix-ld20:32:46
@tumble1999:matrix.orgTumblenot everything though20:33:04
@matthewcroughan:defenestrate.itmatthewcroughanI don't have that enabled, never have 20:33:27
@tumble1999:matrix.orgTumbledo you have any impermenance enabled?20:33:58
@matthewcroughan:defenestrate.itmatthewcroughannope, just a basic nixos machine 20:34:05

Show newer messages


Back to Room ListRoom Version: 10