Skip to content

Conversation

@phirsch
Copy link

@phirsch phirsch commented Dec 27, 2024

Adapts the version matching logic to accommodate version strings in newer open source NVIDIA kernel driver modules as described in #186.

…closes nix-community#186).

Adapts the version matching logic to accommodate version strings in newer open source NVIDIA kernel driver modules as described in nix-community#186.
@phirsch
Copy link
Author

phirsch commented Dec 27, 2024

The failing check seems to be unrelated to the change (rather something to do with cachix).

@phirsch phirsch marked this pull request as draft December 27, 2024 07:19
@phirsch phirsch marked this pull request as ready for review December 27, 2024 07:46
@jennydaman
Copy link

jennydaman commented Dec 27, 2024

I have tried this locally on my machine and it fixes the build problem for me. Here's some info:

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.4-arch1-1, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.7`
 - nixpkgs: `/home/jenni/.nix-defexpr/channels/nixpkgs`

$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64  565.77  Release Build  (archlinux-builder@geo)  
GCC version:  gcc version 14.2.1 20240910 (GCC) 

@mrdev023
Copy link

mrdev023 commented Jan 9, 2025

It works on my machine also with proprietary driver and open.

@rezarajan
Copy link

Works on my machine as well.
Arch linux with nvidia-open-dkms driver 570.144

$ nix profile list
Name:               home-manager-path
Store paths:        /nix/store/fkiffi0374d5xcfvxq6dx3fmrkj7mr0j-home-manager-path

Name:               nixGLDefault
Flake attribute:    packages.x86_64-linux.nixGLDefault
Original flake URL: github:nix-community/nixGL/pull/187/head
Locked flake URL:   github:nix-community/nixGL/ea8baea3b9d854bf9cf5c834a805c50948dd2603?narHash=sha256-JlT4VFs8aVlW%2Bl151HZIZumfFsccZXcO/k5WpbYF09Y%3D
Store paths:        /nix/store/8irw6mczqsa7jqpwcsi3x0lw56nmf3c6-nixGL

Name:               nixGLNvidia
Flake attribute:    packages.x86_64-linux.nixGLNvidia
Original flake URL: github:nix-community/nixGL/pull/187/head
Locked flake URL:   github:nix-community/nixGL/ea8baea3b9d854bf9cf5c834a805c50948dd2603?narHash=sha256-JlT4VFs8aVlW%2Bl151HZIZumfFsccZXcO/k5WpbYF09Y%3D
Store paths:        /nix/store/55i3l9a7p6z782sm8fy1d84hwazr4g1q-nixGLNvidia-570.144

Name:               nixVulkanNvidia
Flake attribute:    packages.x86_64-linux.nixVulkanNvidia
Original flake URL: github:nix-community/nixGL/pull/187/head
Locked flake URL:   github:nix-community/nixGL/ea8baea3b9d854bf9cf5c834a805c50948dd2603?narHash=sha256-JlT4VFs8aVlW%2Bl151HZIZumfFsccZXcO/k5WpbYF09Y%3D
Store paths:        /nix/store/vv3c3p719zai5f77cr7cb6wcsm38wik8-nixVulkanNvidia-570.144

Confirmed with running a ghostty terminal wrapper with nixGLDefault.

@JkktBkkt
Copy link

In case someone is unable to figure this out:
git clone this repo somewhere
cd into it
git fetch origin pull/187/head:nvidia-open
git switch nvidia-open
nix-env -f ./ -iA auto.nixGLNvidia
(auto.nixVulkanNvidia / auto.nixGLDefault may also be useful)

@romen
Copy link

romen commented Aug 19, 2025

@phirsch could you rebase this on top of the latest master and try to get the pipelines to pass so we can try to push for this to be merged?

sectore added a commit to sectore/dotfiles that referenced this pull request Aug 30, 2025
Similar error as described in nix-community/nixGL#199

Adding nix-community/nixGL#187 as flake input
fixes it.

Other changes:

  - Fix `unfree` support for `NVIDIA` drivers
  - Create dedicated `nixgl.nix` module for centralized configuration
  - Update README to reflect new nixGL setup approach and to remove manual nix-channel installation instructions
  - Clean up unfree packages and remove hardcoded nvidia version alias
  - Update dependencies: nixpkgs, home-manager, rust-overlay
  - Add ttyd package required by vhs

All done with help of `Caude Code`.
jennydaman added a commit to jennydaman/nixGL that referenced this pull request Sep 25, 2025
thamenato added a commit to thamenato/nixGL that referenced this pull request Oct 10, 2025
@aancel
Copy link

aancel commented Oct 23, 2025

This branch also fixes the installation on Ubuntu 24.04 with the proprietary driver on my side.
To do so I used: https://github.com/phirsch/nixGL/archive/fix-versionMatch.tar.gz as the nixGL channel.
Could I assist in any way to get this PR merged ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants