this post was submitted on 30 Jun 2023
44 points (100.0% liked)

Gaming

30553 readers
329 users here now

From video gaming to card games and stuff in between, if it's gaming you can probably discuss it here!

Please Note: Gaming memes are permitted to be posted on Meme Mondays, but will otherwise be removed in an effort to allow other discussions to take place.

See also Gaming's sister community Tabletop Gaming.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

This would solve a major issue with SteamOS. The SteamOS itself is immutable/read only as you know. This means, one cannot install or make changes to the core system (it is possible, but that is temporarily until update will revert those changes back). That is why we have the Flatpak support. But many software are not available there (especially CLI tools, if you use them).

This is where the Nix package system comes into play. In short, it allows for installation of programs without touching the immutable part of SteamOS in a controlled and safely manner. These would persist even on SteamOS system updates. For a better explanation, have a look here: https://nixos.org/guides/how-nix-works.html

Valve confirmed: https://github.com/NixOS/nix/issues/7173#issuecomment-1603858003 that Nix package support will be integrated into SteamOS! That's huge. In example I have tools which I cannot distribute easily for Steam Deck users, because Flatpak does not support CLI apps. Nix would solve this issue!

you are viewing a single comment's thread
view the rest of the comments
[–] fazo96@lemmy.trippy.pizza 3 points 1 year ago

That's true, but some system level changes by default can't be done because most system folders are read only. It's trivial to turn this off, however a steam os update would overwrite any changes made.

For installing new apps this is not an issue because Steam os is designed with flatpak support, so if an app is shipped as flatpak (or appimage which is just a single file you can execute) then it can be used without making the system folders writeable

However in this case, it's about the nix package manager which needs access to specific system folders to not just install packages (which can be apps or system stuff) but also to apply changes to the system configuration

It's really nice that a valve developer is taking the extra steps to make sure nix can be used out of the box. I don't really understand why they are doing this, I think it's just because they think it's cool and some users are going to appreciate it.