-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Changing from 22.11 to 23.05 has broken libGL #237938
Comments
Your system is not fully updated to 23.05, only your user channel is. Please update root's channel and rebuild/switch your system. |
If you're using a flake for your configuration, then the channels from the Is your config in a public repo? |
Indeed it is: https://github.com/LiquidZulu/.nixcfg I have been updating the lock files (edit: |
I assume there must be a mistake somewhere. I had the same error with |
Ah, I will see if my flake is doing anything similar to that (I didn't write it for the most part). @Lord-Valen any ideas? |
This is due to using mismatched revisions you have stable and unstable so could be causing your issue depending on where you're using them Remove unneeded channels or pin them in your config when using flakes |
I commented out the unstable branch and the issue persists, if that is what you are meaning: LiquidZulu/.nixcfg@bfb29b3 |
Make sure you dont have any nix-env or nix profile packages for root or for user And remove the channels or pin to flake rev |
Ah, that fixed it, thank you. It also fixed a completely unrelated issue I have been having from the same cause. I removed all of the nix profile packages and it is working now. |
I was having this same issue with several opengl apps. As suggested in this thread, I did the following on my home-manager flake in ~/.config/home-manager nix flake update Boom, problem solved! Thanks! |
Describe the bug
Upon trying to launch
kitty
after updating my NixOS I get the following error:Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
kitty launching without issue.
Additional context
NixGL
The above error is indicating that OpenGL is out of date, or perhaps there is some mismatch which occurred when switching channels. Elsewhere (reddit thread, github issue), NixGL has been suggested as a solution, and seemingly works for some people. However, NixGL seems to be designed specifically to solve a similar issue which appears when using Nix on non-NixOS, which is not applicable to my case.
Nouveau drivers
Also mentioned as a potential solution (here and here) is to use nouveau drivers, but this did not work for me, I changed the below configuration:
to use
services.xserver.videoDrivers = [ "nouveau" ];
to no availI don't know how to run glxinfo
This comment asks OP to run
nix run nixpkgs.glxinfo -c glxinfo | grep OpenGL
to diagnose what looks to be a similar problem, but when I try this I geterror: unrecognised flag '-c'
.Alacritty is also broken
I am getting the same error when I try to start alacritty (through
nix-shell -p alacritty
)Notify maintainers
@tex @rvolosatovs @Luflosi @adamcstephens
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: