Giter Club home page Giter Club logo

Comments (6)

PedroHLC avatar PedroHLC commented on July 4, 2024 1

I can try to fix these two during the 6.9.0 bump tomorrow.

from nyx.

silvanshade avatar silvanshade commented on July 4, 2024

Maybe it would be reasonable to add special handling for the nvidia driver in the LTO case to automatically set this ThinLTO cache dir in order to avoid build failures?

I don't know if this could work with the sandbox modification approach (can you change sandbox paths per-derivation?) but it should be enough to create a temporary directory (with a name chosen at build-time for the kernel derivation).

It wouldn't take advantage of any caching that way but that's not really important. The main thing is that using this setting prevents the nvidia build script from trying to write to the existing kernel modules path which fails due to permission errors.

from nyx.

PedroHLC avatar PedroHLC commented on July 4, 2024

For starters, add it to this list:

if builtins.elem k [ "zenpower" "v4l2loopback" "zfs_cachyos" "virtualbox" ]

This triggers the fixes from:

fixKernelBuild = builtins.replaceStrings [ "${kernel.dev}" ] [ tmpPath ];

Edit: Also, I've seen users in the past just replacing it with ordinary linuxPackagesFor_cachyos.nvidia-x11 and it worked (you have to use .extend in the Packages attrset, no need for an overlay, you can do it directly in the kernel option)

from nyx.

silvanshade avatar silvanshade commented on July 4, 2024

For starters, add it to this list:

if builtins.elem k [ "zenpower" "v4l2loopback" "zfs_cachyos" "virtualbox" ]

This triggers the fixes from:

fixKernelBuild = builtins.replaceStrings [ "${kernel.dev}" ] [ tmpPath ];

Oh interesting, I'll try that. Thanks.

Edit: Also, I've seen users in the past just replacing it with ordinary linuxPackagesFor_cachyos.nvidia-x11 and it worked (you have to use .extend in the Packages attrset, no need for an overlay, you can do it directly in the kernel option)

Yeah this does work and I was using it for awhile. Unfortunately in my case this results in two builds of the kernel since I use the znver4 package from the AMD64 microarchitectures package set (and I sometimes add additional KCFLAGS). So a solution that didn't require that would be nice.

from nyx.

diniamo avatar diniamo commented on July 4, 2024

This happens for xpadneo as well:

hardware.xpadneo.enable = true;

And the fix doesn't seem to work for me.

from nyx.

diniamo avatar diniamo commented on July 4, 2024

@PedroHLC any update on this?

from nyx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.