Skip to content
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

bug: alacritty no longer working on non-NixOS system #4720

Closed
2 tasks done
n8henrie opened this issue Dec 1, 2023 · 4 comments
Closed
2 tasks done

bug: alacritty no longer working on non-NixOS system #4720

n8henrie opened this issue Dec 1, 2023 · 4 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@n8henrie
Copy link
Contributor

n8henrie commented Dec 1, 2023

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Just updated to release-23.11 on an Arch Linux machine that has been running hm-installed alacritty with no issues.

Trying to run alacritty now shows:

$ alacritty
Error: failed to find suitable GL configuration.
Error: "Event loop terminated with code: 1"

Likely related:

Maintainer CC

based on blame: @elkowar @ncfavier @hyperfekt

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.1.64-1-lts, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.1`
 - channels(root): `""`
 - channels(n8henrie): `"nixpkgs-22.11"`
 - nixpkgs: `/home/n8henrie/.nix-defexpr/channels/nixpkgs`
@n8henrie n8henrie added bug triage Issues or feature request that have not been triaged yet labels Dec 1, 2023
@n8henrie
Copy link
Contributor Author

n8henrie commented Dec 1, 2023

Looking into it further (in particular NixOS/nixpkgs#230660) it looks like this is a complicated longstanding issue. Perhaps it was just by luck that it was previously working before the update?

@n8henrie
Copy link
Contributor Author

n8henrie commented Dec 2, 2023

No luck following instructions from https://nixos.org/manual/nixpkgs/unstable/#nix-on-gnulinux#4673

$ nix shell nixpkgs#alacritty nixpkgs#libglvnd nixpkgs#mesa.drivers
$ LD_LIBRARY_PATH=$(nix eval --raw nixpkgs#libglvnd)/lib:$(nix eval --raw nixpkgs#mesa.drivers)/lib alacritty
Error: failed to find suitable GL configuration.
Error: "Event loop terminated with code: 1"

Running with nixGL works:

$ NIXPKGS_ALLOW_UNFREE=1
    nix run \
        --override-input nixpkgs nixpkgs/nixos-23.11 \
        --impure github:guibou/nixGL -- \
        nix run nixpkgs#alacritty

Closing as this isn't really an HM issue.

@n8henrie n8henrie closed this as completed Dec 2, 2023
@mikefaille
Copy link

I have the same problem with kitty !

@cognivore
Copy link

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

6 participants