Story Details

  • Persistent packages on Steam Deck using Nix

    Posted: 2025-02-09 18:15:44

    This blog post details how to use Nix to manage persistent software installations on a Steam Deck, separate from the read-only SteamOS filesystem. The author leverages a separate ext4 partition formatted and mounted at /opt, where Nix stores its packages. This setup allows users to install and manage software without affecting the integrity of the core system, offering a robust and reproducible environment. The guide covers partitioning, mounting, installing Nix, configuring the system to recognize the Nix store, and provides practical examples for installing and running applications like Discord and installing desktop environments like KDE Plasma. This approach offers a significant advantage for users seeking a more flexible and powerful software management solution on their Steam Deck.

    Summary of Comments ( 31 )
    https://news.ycombinator.com/item?id=42992345

    Several commenters on Hacker News expressed skepticism about the practicality of using Nix on the Steam Deck, citing complexity, limited storage space, and potential performance impacts. Some suggested alternative solutions like using Flatpak or simply managing game installations through Steam directly. Others questioned the need for persistent packages at all for gaming. However, a few commenters found the approach interesting and appreciated the author's exploration of Nix on a non-traditional platform, showcasing its flexibility. Some acknowledged the potential benefits of reproducible environments, especially for development or modding. The discussion also touched on the steep learning curve of Nix and the need for better documentation and tooling to make it more accessible.