nixos: opengl -> impure-drivers.opengl#276558
nixos: opengl -> impure-drivers.opengl#276558SomeoneSerge wants to merge 5 commits intoNixOS:masterfrom
Conversation
d636249 to
ae4b5f8
Compare
a60fc1d to
c751b97
Compare
nixos/modules/hardware/opengl.nix
Outdated
There was a problem hiding this comment.
The target used to be a relative path ("opengl-driver"), now it's absolute ("/run/opengl-driver"). Shouldn't matter
nixos/modules/hardware/opengl.nix
Outdated
There was a problem hiding this comment.
I think the most questionable decision is this. Maybe I shouldn't be introducing hardware.impure-drivers.opengl.enable at all?
There was a problem hiding this comment.
Perhaps leave hardware.opengl.enable unchanged and make hardware.impure-drivers.opengl.enable depend on its value?
There was a problem hiding this comment.
H'm, how about I keep hardware.opengl.enable, drop hardware.impure-drivers.opengl, but add hardware.impure-drivers.enable = true to hardware.opengl's config?
...removing references to the hardware.opengl in favour of the more general hardware.impure-drivers
c751b97 to
49c8d09
Compare
|
There is another attempt at this, not sure about the status: #158079. |
Oooh right, I forgot about those. I'll close this for now, let's see where @jonringer and @Atemu are at? |
|
I haven't had much time to work on it and that likely won't change until April. The main point I've been stuck on is that I wanted to build a better pattern to select packages that require multiple bitnesses. For example, right now we have this ugly I've tried a few different things and for now the best I've come up with is building a "package selector" type which is a function from Again, I haven't spent as much time on this as I had hoped. |
|
I've been hopign to do the refactor as well. But wanted to record it to demonstrate how to deprecate old options. just haven't had a single window to free time to do so. |
Description of changes
WIP. Following #275241 and #269475
The motivation is that it's extremely confusing for the new users when instructions for enabling something like CUDA involve setting
hardware.opengl.enableandservices.xserver.videoDrivers. The module's new name is meant to suggest that it's there to ensure integration with theaddDriverRunpath, and it hopefully explains why/when the module has to be enabled (when we're forced to link drivers "impurely").I think it'd also make sense to introduce an option like
hardware.impure-drivers.cuda.enable, which would guide the user through the process of setting up the x11 or datacenter drivers (e.g. through assertions). I'd keep that for a separate PRThoughts? @jonringer @Kiskae @NixOS/cuda-maintainers @NixOS/rocm-maintainers
Things done
nixosTests.quake3nixosTests.tinywlnixosTests.openarenanixosTests.seatdnixosTests.cagebreakAdd a 👍 reaction to pull requests you find important.