73
Arch or NixOS? (lemmy.blahaj.zone)

I've been here a week ago already asking if Arch would be fine for a laptop used for university, as stability is a notable factor in that and I'm already using EndeavourOS at home, but now I'm curious about something else too - what about Arch vs NixOS?

I heard that NixOS is pretty solid, as due to the one file for your entire system format you can both copy and restore your system easily whenever, apart from your normal files and application configurations of course.

Are there any major downsides to NixOS compared to Arch apart from the Arch Wiki being a bit less relevant? I'd also lose access to the AUR, but admittedly I don't think I've ever actually needed it for anything, it's just nice to have. Also, since NixOS has both rolling release and static release and you can mix and match if you wanna get packages from unstable or not, I'm not losing Arch's bleeding edge, which is nice.

you are viewing a single comment's thread
view the rest of the comments
[-] ani@endlesstalk.org 36 points 11 months ago* (last edited 11 months ago)

I'd recommended Arch because with NixOS you end up having to tinker too much. Besides, if you need to use Linux for development purposes, Arch follows the usual Linux/Unix conventions, while with NixOS you would end up tinkering...And you can always use the Nix app from Arch.

Just use Arch with Gnome or KDE, that will save you a ton of time.

[-] CatLikeLemming@lemmy.blahaj.zone 17 points 11 months ago

Huh, I never expected anyone to recommend Arch to me because you have to tinker too much with an alternative distro. I thought simplicity was the reason why people liked NixOS, no?

[-] ani@endlesstalk.org 27 points 11 months ago

Comparatively, NixOS is complex, while Arch is simple. NixOS diverges very much from traditional Linux distributions, beginning with using a diferent filesystem hierarchy, which breaks a ton of apps, requiring workarounds like patches, simulating a standard filesystem... In the long run, you will have to deal with many NixOS-specific issues.

Because you're going to Uni, it's better to focus on having a mostly just works distro with updated repository, and that's Arch. On your free time in the future, maybe try NixOS in a VM just so you have a feel for it. And again, you can use Nix on Arch so you use apps from Nixpkgs.

This all comes from an originally Arch user turned into an experienced NixOS user.

[-] Deckweiss@lemmy.world 16 points 11 months ago* (last edited 11 months ago)

I have set up my archlinux os in a weekend with btrfs snapshots and everything I need. About once a quarter I tinker with it for 30 minutes to either fix a broken update or do some custom solutions to minute problems. It has been running like this for 5years. And snapshots allow me to rollback any fuckups in 1 minute.

I tried to setup nixos twice, because I love the concept. Both times I tinkered with it for 1 to 2 weeks, had to take paid leave. At the end, some stuff still didn't work as I wanted it to. Any customization that is not already natively implemented in nix is a huge pain in the ass to add. Things that would be a 5min config edit on arch took hours on nix to make them rEpRoDuCaBLe. I have experienced no additional benefit over btrfs snapshots.

Tldr: If I could pay somebody 100$ to set up nixos just the way I want it, I'd use it. But since I have to do it in my own free time, I won't.

[-] Auli@lemmy.ca 1 points 11 months ago

Nix is a pain. Not everything works. Example Netword supposed to be able to put options in some confines. Sure most work but I have two in my config that nix well not put in. Why they are valid an I’m running them on my current Os but my nix van refuses to build with them. Another nftsble rules. Again supposed to put them in config file. But I have some nix does not like, completely valid rules but nix won’t build with them. I’ll tinker with it but it still needs work.

[-] fxt_ryknow@lemmy.world 7 points 11 months ago

I'm not sure I agree with this... I'm using nix on several different generation thinkpads, two older generation MacBooks (one air and one pro), two different older generation imacs, as well as my home built PC, and an OEM built pc.... All with little to no tinkering whatsoever.

All my tinkering was first setting nix up and figuring out how to use it... Then I saved and copied my config and use the same one on all the machines (albeit with subtle changes on first install).

I've used arch a handful of times over the years, and it is without question, significantly more "needy" over time, imo.

[-] ani@endlesstalk.org 2 points 11 months ago

Guess you never had to package general or hard to package software like those that require fixed output derivation or undersupported ecosystems, trying to use common development environment for Python under NixOS, running binaries under NixOS, the list goes on.

[-] fxt_ryknow@lemmy.world 3 points 11 months ago

I have not.... And in fairness to me, OP didn't mention the need for any of those things. OP mentions having not even installed anything with the AUR in Arch, which to me just means they are looking for something stable out of the box, which nix has been for me across many platforms.

[-] ani@endlesstalk.org 3 points 11 months ago

Fair point, I was mostly listing the major downsides IMO that OP asked for

[-] Kaidao@lemmy.ml 5 points 11 months ago

This is my experience as well. I went back to Arch after trying NixOS for a few weeks. I just ended up spending way too much time tinkering with the system instead of using it. Also, I feel like a major advantage to nixos is only viable if you have multiple machines. I only have a main desktop.

this post was submitted on 03 Dec 2023
73 points (86.1% liked)

Linux

48334 readers
640 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS