-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
[feature request] source $(nixGL shell)
support
#156
Comments
You can alias |
That's certainly an option, but what I'm ideally looking for is a solution to "install" nixGL in the currently running shell instead of spawning a new one. |
Lately Arch updated its gcc version and now that alias fails with these errors:
So, I came up with a more "install" solution: if [[ ! "$IN_NIX_SHELL" = "" ]] && [[ "$IN_NIXGL" = "" ]]; then
export IN_NIXGL=1
source <(
diff <(env) <(nixGL nixVulkanIntel env) \
| grep '>' | sed 's/^>/export/g'
)
fi It extracts the environment variables that |
I can't understand how the games manage to find the OpenGL drivers in that path. Are you exporting the |
Great. I will check it. Is there any related documentation to that? I want to understand whether something like this is possible for Vulkan. |
Sorry. My fault. I expected Vulkan to require a different method, as it's exposed with |
There's now also https://github.com/soupglasses/nix-system-graphics which is an alternative approach to do this with, which utilizes the |
I started using home-manager. I don't plan to move to system-manager at the moment, so I did the following:
Now, I can update the Mesa/ROCm drivers for Nix using home-manager, without requiring root privileges. It's inspired by the way NixOS installs OpenGL/Vulkan/OpenCL drivers. |
It would be super handy to be able to "install" nixGL into a shell session such that I don't have to worry about wrapping each command in
nixGL foo ...
.Would maintainers be supportive of including such a feature?
The text was updated successfully, but these errors were encountered: