July 25th, 2024

Arch is a gateway drug to NixOS

Many Linux users start with distributions like Ubuntu or Fedora, later exploring Arch Linux for customization. NixOS offers a more structured, declarative configuration model, simplifying system management and reinstallation.

Read original articleLink Icon
Arch is a gateway drug to NixOS

Many Linux users begin with user-friendly distributions like Ubuntu or Fedora but may eventually seek more customization. Arch Linux is often seen as a stepping stone to NixOS due to its minimalistic approach, allowing users to build their systems from a barebones setup. Arch provides essential tools, a package manager, and a comprehensive wiki, which aids users in configuring their systems to their preferences. Despite its advanced reputation, Arch installations are generally low-maintenance, benefiting from rolling releases that keep packages updated. However, reinstalling Arch can be cumbersome, as users must recreate years of configurations.

In contrast, NixOS offers a declarative configuration model, allowing users to define their system setup in a structured manner. The installation process involves generating configuration files that automate hardware and system settings, making reinstallation straightforward. NixOS uses the Nix language, which simplifies configuration management by providing a unified syntax for various system components. This approach not only enhances readability but also ensures that configurations are easily reproducible and reversible.

Ultimately, while Arch Linux has its merits, NixOS presents a more elegant solution for users seeking control over their systems without the complexity of managing disparate configurations. The ability to track and revert changes makes NixOS an appealing choice for those who enjoy customizing their Linux environments.

Related

At the Mountains of Madness

At the Mountains of Madness

The blog discusses challenges in building executables for NixOS and Linux, focusing on ELF interpretation, glibc versions, and dynamic linking. It explores container use, NixOS dependency management, and proposes patchelf for cross-compatibility.

Lix 2.90 "Vanilla Ice Cream"

Lix 2.90 "Vanilla Ice Cream"

The Lix team released Lix 2.90 "Vanilla Ice Cream," a Nix implementation enhancing user experience with features like improved error reporting, faster evaluation, and style guide enforcement. Future plans focus on reliability and user-friendliness.

Nix Alternatives and Spinoffs

Nix Alternatives and Spinoffs

Various projects have emerged post Eelco Dolstra's exit from NixOS Foundation, offering alternatives to Nix. Auxolotl focuses on compatibility and community, Lix on backward compatibility and Rust, Tvix on Rust rewrite, Tangram and Brioche on hybrid builds, and Guix on stability.

I Like NetBSD, or Why Portability Matters

I Like NetBSD, or Why Portability Matters

NetBSD, founded in 1993, prioritizes portability and simplicity following Unix philosophy. It supports various hardware platforms, emphasizes code quality, and fosters a community valuing system longevity and older tech. NetBSD promotes sustainability and efficiency in software design, offering a cozy, minimal setup for exploration and learning.

Switching from Arch to NixOS

Switching from Arch to NixOS

The author discusses their transition from Arch Linux to NixOS, highlighting improved system configuration management, challenges with documentation, and a smooth setup process, while noting a steep initial learning curve.

Link Icon 5 comments
By @RandomThoughts3 - 9 months
I’m not sure I agree with the article.

Arch is especially nice because it has best in class documentation and vanilla packages. The installation is a bog standard chroot and use package manager like Gentoo had for ages or an old school Debian. Arch is nice because it’s as vanilla as a Linux distribution can be.

NixOS is the polar opposite of that: basically no documentation, weird behaviours everywhere, custom configuration, custom file system. Pretty much as far removed from Arch as something can be.

By @keltor - 9 months
Arch is something a fairly non DIY user can easily conquer and use for many years and it will just work. As long as they don't choose to do anything exotic, they can use it basically forever.

NixOS is nothing like that, there's limited docs, the docs are sometimes just RTFM that links to another RTFM and oh yeah don't be afraid of breaking userspace because userspace is doing something wrong. It's fine for some of us who can of course get shit done.

Ultimately, I think some subset of Arch users who really wanted to be Gentoo users but weren't because "drama" and then NixOS scratches that itch.

By @djaouen - 9 months
Guix System is my happy medium between non-functional Arch and documentation-less NixOS.
By @ghthor - 9 months
The nix wiki is not the arch wiki sure, but y’all talking about documentation issues with nix.. what are you talking about. The getting started guides plus the nix wiki made getting running system easy.