-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos: opengl -> impure-drivers.opengl #276558
nixos: opengl -> impure-drivers.opengl #276558
Conversation
d636249
to
ae4b5f8
Compare
a60fc1d
to
c751b97
Compare
"L+ /run/opengl-driver-32 - - - - opengl-driver" | ||
else if cfg.driSupport32Bit then | ||
"L+ /run/opengl-driver-32 - - - - ${package32}" | ||
"L+ ${impurePath32} - - - - ${impurePath}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
# The old option `hardware.opengl.enable` corresponds to `hardware.impure-drivers.opengl.enable` (defaults to `true`). | ||
# However, in order support transition of the systems have been setting `hardware.opengl.enable`, | ||
# we need to translate it into `hardware.impure-drivers.enable` (defaults to `false`) | ||
(mkRenamedOptionModule [ "hardware" "opengl" "enable" ] [ "hardware" "impure-drivers" "enable" ]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps leave hardware.opengl.enable
unchanged and make hardware.impure-drivers.opengl.enable
depend on its value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.enable
andservices.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.quake3
nixosTests.tinywl
nixosTests.openarena
nixosTests.seatd
nixosTests.cagebreak
Add a 👍 reaction to pull requests you find important.