Re:Persistent packages on Steam Deck using Nix
by rendaw on Sunday February 09, 2025 @01:56PM
(#42992704)
I've been using it for developing, but for non-headless stuff IIRC there's a lot of issues with opengl drivers and hardcoded X11 paths and stuff. I dropped a good chunk of time before giving up.
[ Parent
| on HN ]
Re:Persistent packages on Steam Deck using Nix
by IshKebab on Sunday February 09, 2025 @02:43PM
(#42993135)
It's really 50 years of Unix's dumb practice of installing everything at absolute paths in `/usr` that has come home to roost. I wonder if Nix will finally make people write relocatable apps.
Re:Persistent packages on Steam Deck using Nix
by bronson on Sunday February 09, 2025 @09:55PM
(#42996453)
The opposite. Everything must be in /nix.
Re:Persistent packages on Steam Deck using Nix
by otabdeveloper4 on Monday February 10, 2025 @01:39AM
(#42997538)
No, each Nix app gets its own tree root. (Honestly the same thing Mac, Android, etc., also do, so not such a strange idea.)
Re:Persistent packages on Steam Deck using Nix
by IshKebab on Monday February 10, 2025 @02:03AM
(#42997646)
It's designed like that because of this issue. They obviously don't want to do that, but if they don't install everything in global absolute paths then too much badly written software breaks.
It's a symptom, not a cause.
Re:Persistent packages on Steam Deck using Nix
by iamdbtoo on Sunday February 09, 2025 @02:09PM
(#42992810)
I'm currently experiencing this with a Tauri-based app. Nix has been great for us for local dev and service builds, but building an application inside of Nix that needs to run outside of it has been challenging to say the least.
Re:Persistent packages on Steam Deck using Nix
by worble on Sunday February 09, 2025 @02:29PM
(#42993020)
Yeah, I just went through this process myself on steam deck and the fact it can't access opengl or vulkan natively makes anything that isn't terminal based a massive pain in the ass.
There is nixgl which you can wrap around any executable to make it work and it's got support in home-manager (https://nix-community.github.io/home-manager/options.xhtml#o...) but it's a huge annoyance having to wrap `config.lib.nixGL.wrap <package>` around everything you want to install.
Re:Persistent packages on Steam Deck using Nix
by ahoemora on Sunday February 09, 2025 @06:54PM
(#42995424)
It really depends on how you start your programs. If you wrap your compositor with nixgl then everything started through your compositior inherits the relevant env vars (LD_LIBRARY_PATH etc.) and you don't have to wrap the programs separately.
Re:Persistent packages on Steam Deck using Nix
by phaer on Sunday February 09, 2025 @06:23PM
(#42995191)
Did you try https://github.com/numtide/nix-gl-host/ to help with nix & opengl drivers on non-nixos distros?