Ok so I tested the official hyprland nix-package on F43 (with Nvidia and AMD GPUs) and it works. Here are the instructions:
Note:
This package works flawlessly on AMD chips with nixGL start-hyprland.
Nvidia users are atm unfortunatly confronted with some workarounds because the necessary nixGL-package doesn’t work quite right (it doesn’t install the nixGLNvidia-wrapper properly).
(See for more info: NixGL, Nvidia 570 Drivers, and Sway Causing GBM Errors · Issue #203 · nix-community/nixGL · GitHub ).
The solution for now is to use this patched wrapper (this fix will be merged in the standard nixGL repo):
(See for more info: fix: regex pattern breaks for `NVRM version: NVIDIA UNIX Open Kernel … by tom-ainc · Pull Request #218 · nix-community/nixGL · GitHub)
You install it with:
nix profile install github:tom-ainc/nixGL#nixGLNvidia --impure
Lastly you have to use this environment variables in your hyprland.conf:
# NVidia specific environment variables
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = GBM_BACKEND,nvidia-drm
env = GBM_BACKENDS_PATH,/nix/store/q48aw39nxpwamfsxc19ad6kp3f9qjdwz-nvidia-x11-580.119.02-nixGL/lib/gbm:/nix/store/zm9vsqqz6y4ss2kws9j6caj52wav2v49-mesa-25.0.5/lib/gbm
Then start hyprland with:
nixGLNvidia-580.119.02 start-hyprland
Finally this nightmare is over. Thanks to the hyprland - team.