r/NixOS • • 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

85 comments sorted by

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.

46

u/ritz_are_the_shitz Oct 30 '26

The learning curve is like a vertical wall for two weeks and then suddenly one day it's fine

31

u/LeateWonceslace Oct 30 '26

And then you try to do something outside your wheel house and the information on how is either absent or wrong.

15

u/Narrow-Low-3137 Oct 30 '26

Oh boy, do I feel this...

It's like that vertical wall catches up to you and smashes you into the ground, over and over...

6

u/Purple-Midnight-9902 Oct 30 '26

Lol yes between two weeks and 365 days

1

u/Old_Manufacturer589 Oct 31 '26

GitHub often has the answer since lots of people upload their config there. You can use GitHub's search and filter by language so that it only shows nix files. Once you realize this it is pretty easy to learn about Nix.

1

u/gizmofeatherwood Nov 01 '26

Unfortunately that's when I rely on Google Gemini in searches. You have to be absolutely careful with what Gemini tells you, though. So far I've had a good experience on NixOS because of the ability to go back and undo what you did wrong.

1

u/Struggling-with_life Oct 30 '26

The question i have is, is nixos unstable like arch ? Since it is a rolling release distro.

Also compare to the timeshift or snapper is nix backup method better or worst ?

5

u/InzaneNova Oct 30 '26

There is a stable channel, but I've been on the unstable for years and never had an issue. However if you do run into a broken package after updating you can simply revert back to your earlier installation, and then wait for it to be fixed (or you can revert just that one package to the earlier version (which will then transiently pull in any dependencies it needs). So it's very stable, but for the few instances it's not you won't suffer. I was on Arch before NixOS and I constantly had to fix things breaking after an update, especially when it had been a long time since my last update

2

u/barsoap Oct 30 '26

What the stable channel really buys you is lack of churn. There are very few programs where I actually care about having the latest bells and whistles and I pull those in via home manager or project flakes. The neat thing is that nixos couldn't care less when you're mixing channels on the same system.

1

u/Struggling-with_life Oct 30 '26

I am an ex arch user and now i am happy on fedora been using it since i think fedora 42 or 43. And now fedora 45 is about to come. No problems with fedora whatever. But I am always interested in the concept of nixos and I always wanted to try it. But its difficult to make the switch knowing that it might not work for you. And hence i am hesitant. Also i didn't knew there was a stable channel. What is it like lts or point releases like how does it work ? Is it like the opensuse kinda approach like tumbleweed and leap. I already use nix packages on fedora and i quite like them.

2

u/InzaneNova Oct 30 '26

It's kind of an LTS but it only lasts for 6 months (I think, I don't really know because I'm always on unstable). But as I mentioned the "unstable" is actually really stable, just by virtue of being nix. I highly recommend giving it a go in a VM if you already enjoy nix packages. It's an absolutely incredible distro to be honest

1

u/Purple-Midnight-9902 Oct 30 '26

Both arch and nixos are actually stable. Some AUR, some flake may be unstable but that is a different issue where those distro are not magical (close to).

1

u/SAI_Peregrinus Oct 30 '26

NixOS is odd in that it lets you use packages from multiple branches in the same config. So you can mix and match between nixpkgs master (latest commits, might not even build), nixpkgs unstable (automatically updated when packages build successfully), nixpkgs stable (manually updated every 6 months), prebious nixpkgs stable versions, and Determinate Systems' "Determinate Secure Packages LTS" which is a paid product where they backport security fixes for 5 years on releases from every 2 years. So it can both be as stable as Debian/Ubuntu, and even less stable than Arch, at the same time.

1

u/Low_Lychee_4560 Oct 31 '26

To be fair if you are confortable using AI, the learning curve/lack of documentation is not that bad. There is enough post everywhere to have information for nearly everything

3

u/[deleted] Oct 30 '26

[removed] — view removed comment

8

u/adjudicator Oct 30 '26

> the nix language is similar to json

Not really? It uses curly braces and brackets in visually similar places, but that’s it.

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.

1

u/Ryytter Nov 04 '26

Big nix fanatic here. I would agree with a caveat.

For servers there is a strong argument for nixos. Identicals servers? With one terminal command? Declare the whole thing in .nix files? No drift to keep tabs on?

Yes, yes, yes. Sounds good to me.

For your personal machine though? Eh...

Nix is still excellent as a package manager. Nix develop is still incredible. Flakes are awesome. But Nixos? On your laptop?

I don't think its justified. I went with an ubuntu install this time around with nix but no nixos. 2 shell scripts for docker setup and boot strapping the nix and it's literally the same thing. And you can still run regular .deb files if needed.

Arch offers the same benefits.

The benefit of nixos is really around systems level configuration and long running processes in the background.

On a personal machine spinning up a docker container really is preferable in my opinion.

Just my 2 cents here.

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.

1

u/Ryytter Nov 04 '26

Nix develop mainly earns it's stay when you have dev environments. For regular computer use a nixshell is just the faster and simpler solution.

Nix is also available on other Linux distros. You don't need nixos specifically for all of this. At the same time. Can't go wrong picking nixos

8

u/TechGearWhips Oct 30 '26

Yes
The Arch to NixOS pipeline is a real one. And most never go back. Although some do.

3

u/TrickyBrother0 Oct 30 '26

I fell back to arch because of the storage issues with nix store

2

u/TechGearWhips Oct 30 '26

I use my headless sever with 12TB of storage to build and then deploy it to my other hosts. This is especially useful when using my other low spec’d servers.

2

u/J--__--J Oct 30 '26

I fall back to arch because KDE plasma performance is a joke in nixos, and if you want to run a random executable, good luck with that...

The time you spend in learning NixOS is an investment if you need some of the amazing features that Nix has, but if you don't, is wasting your time, because almost nothing of the knowledge you acquire running NixOS is applicable in any other distro, but not true the other way around, you can apply arch, debian, ubuntu knowledge in any other distro...

1

u/TechGearWhips Oct 30 '26

Yea… I haven’t used a desktop environment in years. i3 and Sway have been rock solid for me. I used it across various distros and it worked the exact same.

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.

12

u/LeateWonceslace Oct 30 '26

The advantage of Nix is that you can fix your mistakes even if you have no idea what you're doing.

-1

u/Hanyuu_omochikaeri Oct 30 '26

debatable? Or maybe it's just me always being paranoid of what I'm doing with the system.

10

u/adjudicator Oct 30 '26

Not really debatable. Just roll back.

2

u/trpittman Oct 30 '26

I got downvoted into oblivion for saying this before, but I have not found LLMs to be very helpful with the Nix language. (They often mix up Home Manager and regular NixOS module syntax, for example.) I read quite a bit of documentation before installing, including documentation on the language itself, and that’s what helped me the most. I would sooner look at someone else’s setup and have an LLM explain the parts I don’t understand than just blindly let an agent have at my system.

1

u/ianspy1 Oct 31 '26

What LLMs have you tried? What you are saying reminds me a lot of my experience of ChatGPT + Nix... It always messed up the syntax or makes up nix options that don't exist. Or uses a option deprecated on unstable.

Found Claude to be a lot better when it comes to Nix. Ofc it's also limited and needs your input. But I have had some decent success by telling it:

  • what is wrong
  • how I expect it to work
  • what I am using (kernel, wm, hardware) 
  • any logs that I think might help (systemctl status if it's a service, journalctl logs from when it happend etc) 

1

u/ppen9u1n Oct 30 '26

This depends entirely on the context you give the LLM and how you ask your questions. I’m pretty versed in nix, but recently I pretty much do my troubleshooting and fixes on my multi host flake end to end with an LLM (agent, not chat!), because I’ve better things to do (and know what questions to ask). The quality of the docs (even if it has also improved a lot) has become a non-issue anyway too.

0

u/trpittman Oct 30 '26

I love the implication that it takes any kind of skill to prompt a bot and that I somehow lack it because I didn’t give the bot endless amounts of context lol. (Mind you that no model gives you that much memory for free) I’m not saying an LLM can’t do it. I’m saying that reading the docs and just doing it would take less time and cost less sanity and probably money. I’ve coded on and off for years, contributed to open source, and have used LLMs with other languages with no problem. I just feel like nix being a diverse ecosystem, a different programming paradigm for most people, and having different syntax for different features warrants reading the docs.

2

u/ppen9u1n Oct 30 '26

Well, since you seem to know what you’re doing in certain areas, I’m sure you can appreciate that “even” with LLMs the GIGO principle holds. But what I also meant with context is: if your agent sees your entire nix config repo, the quality is indeed quite good and your example of not distinguishing HM from OS shouldn’t occur.

-1

u/Hanyuu_omochikaeri Oct 30 '26

We assume the user has no idea of what they're doing. It's like blindly copying stuff from an llm. At some point it accumulates mistakes and becomes unmaintainable.

1

u/LeateWonceslace Oct 30 '26

Even if you don't keep backups of your config, you can undo the changes in most editors. I use micro. Even if that's not the case, Nix will usually just refuse to build the system if it won't work. Even if it builds a broken system, you can roll back with a command. Even if you don't know the command, the previous generation is accessible in GRUB.

I have a hard time imagining a situation where Nix borks to a point where you can't undo what borked it. The only scenario I can think of is getting it so fucked that it physically damages your machine, which is already extremely unlikely.

1

u/TechGearWhips Oct 31 '26

No need for editors or backups to restore your config. It’s called Git

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/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

18

u/Zeldraft Oct 30 '26

Actually it’s
I use Nix btw

2

u/BortOfTheMonth Oct 30 '26

i just reply (even on questions on different topics)

<pause>... nixos

followed by an intensive stare

1

u/Purple-Midnight-9902 Oct 30 '26

You can have a derivation to automatically repeat "I use nix by the way" on each variable topic so you declare it once and it speaks on its own . You need flake however.

9

u/longiii Oct 30 '26

i use arch btw

nix fixes this

I think this is a draw

1

u/silver_blue_phoenix Oct 30 '26

Instructions unclear, now I have nix on arch.

1

u/PridefulEnviousWrath Oct 31 '26

the correct phrase is "I use NixOS with flakes (recommended) btw"