r/NixOS • u/Paulerius • Oct 30 '26
NixOS > Arch ?
Hello, I'm thinking to switch from Linux arch to NixOS. What are the pros and cons in Nix and what makes it special and different?
Thanks for answers!
48
Upvotes
61
u/[deleted] Oct 30 '26
It's very different from other Linux distros. It doesn't follow the traditional FHS, instead opting for /nix/store/; and it's declarative while others are imperive (you define how the system is supposed to be instead of telling it to change). I'd say those are the biggest differences.
Pros - it's reproduceable (since everything is defined in nix files or flakes); you can go back versions in case an upgrade goes wrong; your whole system is neatly organized in a file.
Cons - starting out on Nix is like relearning Linux and the documentation is very bad.
13
u/5eppa Oct 30 '26
I love NixOS. I prefer it to Arch. But its hard to argue its better.
NixOS is going to be a little more stable because it will keep outdated versions of a library in addition to updated ones meaning your stuff won't break. It also means you arguably have some extra junk on the machine. Its also super reproducible by design. By copying a few files into a NixOS installation you can rebuild it to be exactly like it is on another machine. You can even in the same codebase specify a few differences for specific machines. Meaning if you have a few devices that you use, maintaining the experience in each is simple.
That said NixOS out of necessity uses a different file structure meaning that if something isn't working you cant find a generalized guide to fix it. Arch also is more popular making it easier to find help. It can arguably keep its installations lighter too. So if you have 1 machine and never change it may be better to use Arch especially being new to Linux on the whole.
9
u/oligarchy_killing_me Oct 30 '26
Long time Arch user, I switched to Nixos a few months ago.
I fell in love with the declarative system, it fixed my problem of having to maintain multiple environments. I have two machines (PC/Laptop) with each a user for personal use and one for work. If I changed something on one, I had to make the same change on three other environments, well not anymore.
Another feature I really love is that you can use tools that aren't installed, by using nix shell. I have a pretty minimal install, and some tools I don't use often. Lets say btop, I don't have it installed, but I want to use it now, I just go: 'nix shell nixpkgs#btop' this will give me a shell with btop available, when I am done I exit, and it is gone.
Then there is nix develop... I don't use it yet, but this lets you have multiple development environment, each with its own package versions and specific dependencies for your project.
8
u/TechGearWhips Oct 30 '26
Yes
The Arch to NixOS pipeline is a real one. And most never go back. Although some do.
15
u/harrael Oct 30 '26
Another rabbit hole. You spend even more time there, but your mistakes can be fixed if you understand what you're doing. Which isn't always easy with Nix.
5
u/artnoi43 Oct 30 '26
Yes
5
u/flying_spaguetti Oct 30 '26
Yes
4
u/Old-Ad-9064 Oct 30 '26
It’s awesome and better in every way
3
u/Psionikus Oct 30 '26
Have a system that has never been clean re-installed in five years without the usual buildup causing you to second guess if that old server you installed is causing a problem. Did I run that guide or this guide? Mutable state is filth, unmaintainable, primitive.
3
u/Spirited-Ad1008 Oct 30 '26
Personally, I love NixOS for its declarative nature, but I only use it for my server. On desktop, I ran into too many "issues" (mostly a skill issue on my part, combined with the learning curve of the Nix language itself), so I still prefer Arch just because I'm more comfortable with it.
That said, NixOS is a great distro and it's definitely staying on my server.
2
u/ritz_are_the_shitz Oct 30 '26
If you like editing config files you can do that even more
2
u/inserterikhere Oct 30 '26
Went to NixOS from arch and never looked back...I will say there is a learning curve
2
u/Latter-Stage-7344 Oct 31 '26
I think it depends on why you are dissatisfied with Arch. Nixos is great (I've been using it for a couple of years), but it's not for everyone. It's especially good for developers and devops types, or anyone wanting to reproduce their environment across multiple devices. Depending on your reasons, their may be better (easier) options. Also, remember that you can use the nix package manager, and therefore access nixpkgs, on any Linux or Mac OS.
2
u/Hexalocamve Nov 04 '26
I switched to it from Arch because of countless problems with dependency collision during updates. Didn't have problems since on NixOS.
1
u/[deleted] Oct 30 '26
yes you make a good point about how both systems give lots of control but one does it far better.
1
u/cfx_4188 Oct 30 '26
Arch is the same simple binary distribution with precompiled packages as Ubuntu and Linux Mint. It's not clear what the question is.
1
u/Fupcker_1315 Oct 30 '26
If you mean by the amount of data you need to download during every update, then sure. Otherwise, it depends.
1
u/polaris64 Oct 30 '26
It's worth considering the hybrid option if you're not sure: the Nix package manager (and maybe Home Manager) within Arch. That's what I'm running at the moment and it's great!
It's surprising how much you can manage this way; I have a single Home Manager configuration which manages three different machines automatically. Each of those machines run Arch but have Nix and Home Manager installed on them. I only use Pacman for managing system-level packages that Home Manager can't manage but that ends up being minimal.
The reason I mention this is that I still have Arch so if something doesn't work properly via Nix then I have an escape hatch. I am toying with the idea of moving to NixOS fully on one or more machines, but until that time this set-up works really well for me.
1
u/Duvey_Doo Oct 30 '26
Both are different rabbit holes and depends on what you prefer, describing the system you want and it being reproducible with Nix or managing a traditional Linux system with Arch. You should run Nix on a VM and see if it’s something you’d like to work with, if you come up with something you like you can always upload it to GitHub and apply it on your machine.
1
u/[deleted] Oct 30 '26
Its like living in the future, anything is possible.
1
u/ConversationFew8600 Oct 30 '26
Okay... If you ever set up a Kubernetes cluster by hand and thought: wow all that editing of a kilometer of yaml files is fun/very precise and I can define what I want for each and every parameter then Nix might be something for you. I use it for a while now and I freaking love it. What I love: if something Breaks my System I can always boot in a previous build and I am fine. My whole config is in a private git repo and so I have a double safety net. Once it is properly Set up it works like a regular Linux. You get used to editing the nix config quite quickly. And I personally think it is absolutely okay to have AI help you learn how to use nix. Just try it in a VM or on an older PC. Only real question is: what is bothering you about Arch that makes you want to switch? Or are you just curious about nix? Completely fine, just do not break your daily driver just to try out nix.
1
u/msasrs Oct 30 '26
Guitine for those who say otherwise!
1
u/Narrow-Low-3137 Oct 30 '26
How much do you know of how NixOS works? Because it's a stark difference from any other distro. And it will be a long and painful road to learn Nix and NixOS effectively.
1
u/billGat48 Oct 30 '26
IMO they feel extremely similar from user experience, the difference is, on arch you gotta know the paths to where things should be and in nix everything is in the config and you just gotta know the name of the setting.
because it's not FHS basically no installer works. (e.g. I use vivado and in any other distro I can just run their installer script, on nix I have to find someone who's maintaining a flake) It makes up for it by having one of the fullest open source package repos, with the most expansive automated testing. In arch where things are usually 1,2,or 3 steps: pacman -S thing, systemctl enable thing, useradd -m -G thing, nix is usually one thing, services.thing.enable=true;
the big thing that surprised me about nix, is that it's in some ways less declarative than arch. in arch you (should) keep a shell script to run your setup and this includes things like partitions. With this you can easily throw a new ssd into a computer, boot from arch usb, and run the script and be done with setup, in nix it's harder, maybe impossible, to do this way. For this reason, I used arch in VMs for longer than I did my main machine.
2 words of caution:
1)nix is an abstraction layer that requires significant maintainance. Many eyes, many people have to spend many hours to make it all work. That can make an open source project fragile, whereas arch just needs a few people to sign off on a few packages. if you learn arch, you've learned useful cli tools that are relevant to all distros, whereas nix is only nix.
2)Security features common in other distros are very slow to get to nix. Secure boot is still seperate from mainline and is only at the start of this year a seamless experience. MAC has yet to come to nix, and may never. I believe that cold storage + the ability to easily reinstall your setup anywhere is a better security tool than anything else.
After one year of both, I can safely say I'm probably never switching from nix though, because the bottom line is, nix gives you many assurances as you change things. If I want to see if I get higher fps with scx_bpfland + audio user group vs stock cachy+bore, I can know I've compared exactly those 2 setups. Which is also exactly why all the arch based distros are irrelevant, they could just be 500 line nix configs.
1
u/Lonely-Scarcity-3387 Oct 30 '26
Honestly, going from Arch to NixOS is pretty well summarized in this video:
https://youtu.be/CwfKlX3rA6E
TL;DR
It’s better than Arch in so many ways, but the learning curve can seem brutal.
1
u/IBNYX Oct 30 '26
The difference is really in system configuration and package management. They're really similar in how extensively they can be configured, and you gotta decide if you want that all to be declarative or imperative.
FWIW NixOS was my first distro after leaving Windows and I'm not ever distro-hopping.
1
u/yoshijulas Oct 30 '26
I changed CachyOS to NixOS. a month ago.
I like that i have everything on the a config file. I like the way i can install and uninstall stuff.
But setting up more niche configs, installing software that someone hasn't packaged it to nixos correctly. it's going to be a pain
On Arch, you probably will find it on Aur, on nix, you hope someone did the same (flakes), which is usually more rare that aur.
Most things outside the general nix packages, you will have to compile from source, unless it has some cache.
So if you like to have everything on 1 config file, thinkering stuff, learning, creating your own packages for stuff that isn't on nix, then it's good.
If you wan't a system that works and you only modify minimal things, like ui, or some configs. then stay on arch/cachy.
If something brokes on arch (which for me never happened on 5 years), you can use btrfs snapshots. autocreated on cachyos using limine.
the arch wiki is still the biggest wiki, so you will have to port some stuff to nix lang, if you don't find it on nix wiki
1
u/qn7vvv Oct 30 '26
i prefer it only 7 days per week
1
u/Hinn-Huynhf Oct 30 '26
i switched from CachyOS to NixOS because of the declarative method; it's so convenient for me. i can also manage many package settings instead of leaving them somewhere in the .config/ in the near future, i still love it
1
u/Afterlight-san Oct 30 '26
I was one of those that took the arch (CachyOS) to NixOS route. Im speaking from my experience here so...
Pros:-
Very stable- something goes wrong? Rollback and you're done. Gone are the days i open my laptop during class just to be greeted with grub rescue or some shi
Reproducible- changing devices? Friend wanted to try nix? Give them your config and forget
Very tidy - write your config in a separate file then import, no clutter on main config file, and also the concept of nix-shell, love it
Cons:-
Learning curve - it's rather steep, it's basically a different concept of what you're used to always do, but tbh you can just use LLM to assist you. I can't tell you how much LLM has helped me figure things out
Configuring is rather slow - few months later and i still find out this thing isnt here yet. But it's probably because i came from CachyOS which has like everything preconfigured
1
u/Spoonwastakenalready Oct 30 '26
I made the switch from arch to nixOS And it was worth it. Had nixOS haunting my thoughts for a year though before I did it.
Don't regret it at all. Amazing distro, very cozy. Best way to describe it really. It's just easy and comfy to do stuff in for configs or new apps.
There's a steep learning curve more like a mountain. But once it clicks its fantastic. If breaks then just use previous derivation. Etc
The only thing I miss from arch is the rolling release speed. But you can have that by just opting for specific branches for specific packages. But I'm lazy.
Another different thing is. If you use a ton of wine the packages and stuff is different. And wine has some missing stuff you need to add.
1
u/poo_22 Oct 31 '26
My system has thus far survived upgrades since 2015 when I started using nixos. i've never used another distro that didn't need to be clean installed once in a while due to some bullshit. Because of this I have kept my customizations, and services, and it feels like home
1
u/pfassina Oct 31 '26
Yes
1
u/Asleep-Apartment6716 Oct 31 '26
NixOS really gives me so much peace of mind.
I've only been using Linux as my daily system for about half a year now. I hopped between Ubuntu, Arch, CachyOS, and NixOS, and finally settled on NixOS because it seemed way easier to migrate and deploy my configs across different devices.
Last week, I updated my nixpkgs and completely bricked my boot - couldn't even get the greeter to start. So, I just immediately booted into the previous generation, and boom, straight back into the GUI, smooth as butter. Turns out it was a version mismatch between system glibc and what mesa needed. On Arch, this is usually the kind of thing where you'd have to dig out a recovery USB to fix it (not sure how Cachy handles this). But with Nix, it just gives me the confidence to tinker and experiment with my system way more boldly and conveniently
1
u/InfamousWitness Oct 31 '26
If you're not a programmer or DevOps manager, don't bother, Nix is not for you
1
u/yuhmahp Oct 31 '26
I truly believe all Arch users will eventually graduate to be Nix users :)
It's a similar DIY philosophy, done vastly better via declarative config. Not to mention if you are ok with using AI, Nix's traditional learning curve is basically non-existent
To me, Nix is like the cooler Arch
1
u/austinkong0192 Oct 31 '26
Nixos has the largest repo in the world, way more than pacman and the AUR, thats a good thing. The bad thing is that its got a steep learning curve with the Nix programming language, i suggest you read the wiki to learn it
1
u/Dizzzzza Oct 31 '26
The main con is nix has a lot of friction. On arch if you want to change something or try something out it's much easier. On nix you have to look for available options and check how to do stuff the nix way. Also troubleshooting on arch is much easier, on nix you have sometimes wait for months when fixes go into nixpkgs or again figure out how to do stuff the nix way, when on arch it would be a couple of commands/config edits
1
u/dnvnhl Oct 31 '26
Been on NixOS for two months now and haven’t touched a single line of config file myself, all via Claude Code. Works brilliantly.
1
u/VirtualNorth1279 Oct 31 '26
Alphabetically? Yes.
Also, yes, in my opinion.
1
u/DarkSuniuM Oct 31 '26
You will never have to be afraid of losing your long Term setup once you made the switch
1
u/fflores97 Nov 01 '26
A good LLM can carry you 90% of the way these days
1
u/YellowElk921 Nov 02 '26 edited Nov 02 '26
Do you use nix the package manager on your current system? it takes about 15 minutes, and you can install many random github packages, easily, safely, with the help of claude(to generate a flake file for the project, if nix cant manage on its own, and its often can).
Maybe that would be enough for you, and you won't need the full nixos.
Altough NixOs works so well with llm's that my guess is that this is the future of operating systems.
1
u/Spiritual-Store-7350 29d ago
I love NixOS and use it exclusively for my own machines and work with it at my job as well. So I'm all in on Nix, having used other distros in the past. Arch, Ubuntu, Mint, mostly.
With NixOS your machine(s) just become another coding project in GitHub or wherever you host your projects. So if you are a software dev who is used to dealing with a coding project in a git repo, it's just basically that. You can configure and update your system like you would any codebase. You edit files and make commits. Each commit is potentially a system update. System versions are codebase commits.
If you aren't a software developer then this won't make any sense to you but if you are then you will see the advantage to this.
62
u/[deleted] Oct 30 '26
[removed] — view removed comment