52
Jump from Arch to NixOS? (lemmy.dbzer0.com)
submitted 1 year ago* (last edited 1 year ago) by andrew0@lemmy.dbzer0.com to c/linux@lemmy.ml

As the title implies, should I do it? I love Arch so far, and I can fix most issues that pop out. However, I sometimes wish to start fresh without too much hassle, but I get a feeling NixOS isn't as mature as Arch.

Have any of you used both, and if so, what do you miss from Arch? What are you grateful for in NixOS?

top 50 comments
sorted by: hot top controversial new old
[-] RvTV95XBeo@sh.itjust.works 56 points 1 year ago

If you make the switch you won't be able to tell people you use Arch, so keep that in mind.

[-] iusearchbtw@lemmy.sdf.org 22 points 1 year ago

true, but you'll be able to tell people you use nix

[-] WreckingBANG@lemmy.ml 19 points 1 year ago

Nix is the new Arch

[-] Sivaru@lemmy.world 10 points 1 year ago
[-] XTornado@lemmy.ml 12 points 1 year ago
[-] Sivaru@lemmy.world 6 points 1 year ago

I know , just kidding.

I use Nix BTW...

[-] 20gramsWrench@lemmy.dbzer0.com 4 points 1 year ago* (last edited 1 year ago)

I think we can all agree that using nix in no way prevents people from talking about it

[-] cerement@slrpnk.net 27 points 1 year ago
[-] PipedLinkBot@feddit.rocks 35 points 1 year ago

Here is an alternative Piped link(s): https://piped.video/watch?v=DMQWirkx5EY

https://piped.video/watch?v=fuWPuJZ9NcU

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

[-] Blaze@iusearchlinux.fyi 16 points 1 year ago
[-] WreckingBANG@lemmy.ml 12 points 1 year ago

use Arch to manage your system packages and use Nix to manage your user & GUI packages

Brilliant. Thanks.

load more comments (2 replies)

Oh, even better. I'm going to put it on the Ubuntu desktop my employer wants me to use.

[-] beetsnuami@slrpnk.net 15 points 1 year ago

I've also been distro-hopping, but settled on NixOS. I find it very clean, you know exactly where your (system-level) configuration files are (...and could even manage user-level config files using home-manager). There is a stable branch, which is, well, stable. And even if it wasn't, you can rollback the system at any point, which is trivial (just select a different generation during boot).

One of the biggest advantages for me is universal reproducible working environments. Using Nix+direnv, I can lock all tools (make, gcc, JupyterLab, Python, Julia) that I'm using in a project to specific versions (and upgrade/rollback). I can install programs/libraries in a nix shell and they will be removed on the next garbage collection. Upgrades are extremely safe: I once had a problem with RAM that corrupted a lot of my files during an upgrade. Nix can detect and repair this.

Downside is that Nix doesn't follow FHS, so some programs need a little help, for example by Nix' steam-run.

[-] curiosityLynx@kglitch.social 4 points 1 year ago

Do you mind me asking what FHS means in this context?

[-] priapus@sh.itjust.works 7 points 1 year ago

FHS is the filesystem hierarchy standard than Linux and most Unix/Unix-like systems use. The Wikipedia entry has a good simple explanation. The full standard can be found here. NixOS does not use this standard, as it's not compatible with many features Nix offers.

load more comments (1 replies)
[-] MischievousTomato@lemdro.id 11 points 1 year ago

NixOS is as mature as arch, I'd say, but because of its nature it has issues here and there, but rarely so.

That said, the learning curve for nix/nixos is very very very steep, so good luck learning. It took me a while for me to use it nicely, and even then, I'm nothing more than a beginner. Even so, I'm quite comfortable and pretty much can't use any other linux distro.

[-] flashgnash@lemm.ee 3 points 1 year ago

I don't get why everyone says it's so bad, you get a decent starter config and to install stuff you just add one line to it

Installed it bare metal on a Friday and was up and running by Monday

By no means a master of it but the config is pretty intuitive generally speaking

[-] MischievousTomato@lemdro.id 3 points 1 year ago

For many it's a radical change in paradigm, and I assume many just want to understand it well

load more comments (5 replies)

That's true for the configuration.nix. I still cannot fully wrap my head around using Nix Flakes for managing my nixos configuration, home manager and overlaying or creating packages. My setup so far works, but I still don't feel like I fully understand it.

[-] flashgnash@lemm.ee 3 points 1 year ago

That's more or less the same boat I'm in tbh. I'm just starting to play around with using shells for development environments

[-] flashgnash@lemm.ee 2 points 1 year ago

If nixos has been around this long how come it's only now starting to pick up in popularity?

[-] ScreaminOctopus@sh.itjust.works 2 points 1 year ago

Documentation is crap, but has been getting much better recently. Companies are also starting to use NixOS in production and are making contributions. The low friction ARM development process becomes more relevant every day.

[-] flashgnash@lemm.ee 2 points 1 year ago

That explains it, documentation is ok but not nearly as good as arch's, feels like it takes a lot of googling

[-] ScreaminOctopus@sh.itjust.works 2 points 1 year ago

You have to know exactly what to ask for, which is a big problem when you're starting out

[-] flashgnash@lemm.ee 2 points 1 year ago

True but that applies to most tech and it's a transferable skill

load more comments (2 replies)
[-] deikoepfiges_dreirad@lemmy.zip 9 points 1 year ago

I switched to Nixos after reading a lot about it and eventually switched back to arch because I didn't like how hacky everything felt. On the surface it seems really clean because of the central configuration file and the reproducible nature of the whole thing, but in the rare case something doesn't go as planned, it's hard to know how to do anything about it. Basically everything that would have been a configuration issue for you to fix, is now a bug. Also, I found no easy way to install software that isn't in nixpkgs (which is rare, but happens).

[-] Makussu@feddit.de 4 points 1 year ago

You can always download appimages and run them or run unpatched binaries with steam-run. Worst case is packaging them yourself, but once you geht the hang of it, that also goes relatively fast.

[-] haroldstork@lemm.ee 8 points 1 year ago

I would recommend you give it a shot. Nix is not conventional and you will find that the ways you’re used to doing things are arch are done differently on NixOS. It’s not a matter of maturity. It’s a matter of use case. I use it on two systems, but not my main one because there are some things that I don’t want to deal with that NixOS imposes. I encourage you to give it a try and see what you like about it.

[-] inverimus@lemm.ee 6 points 1 year ago

I haven't used NixOS but it does sound interesting. From what I gather all you need is your configuration.nix file to rebuild the entire system the same as it was before. I think for sure the biggest thing I would miss is the AUR.

[-] colonial@lemmy.world 5 points 1 year ago

Not a Nix user, but IIRC nixpkgs is actually bigger than the AUR by a long shot.

[-] inverimus@lemm.ee 3 points 1 year ago

That is good to know, but if you are missing something it seems you need to package it yourself. I'm sure I could do that, just not sure I really want to be doing it.

[-] flashgnash@lemm.ee 3 points 1 year ago

In practice it takes a long time to build a config for absolutely everything in your system at least from my experience of it

There are a few things I've not bothered to put in the config like wallpaper, gtk theme, macros (though I do want to put macros in declaratively because it feels like missing a limb not having them)

System setup wise you can completely wipe the machine and have it back up to where you left it in 20 mins or so

[-] ruination@discuss.tchncs.de 3 points 1 year ago

Well nixpkgs and NUR should be big enough, and you can just quite literally use Nix to grab stuff from Github anyways.

[-] bankimu@lemm.ee 5 points 1 year ago* (last edited 1 year ago)

Your reason of "wish to start fresh" doesn't sound compelling.

Arch is stable, and works great. Biggest draw for NixOS is packages. I don't think NixOS has anything to offer in packages that I can't get in Arch. I'll not advocate switching to an experimental distro with who knows what other headache, just because I can run Debian or rpm packages. Not for a daily driver.

Do it only if you are bored or something.

[-] aleph@lemm.ee 4 points 1 year ago* (last edited 1 year ago)

I think the biggest draw for Nix is configuration.nix and being able to centralize your system configuration. I personally find the AUR to be better in terms of software, especially from GitHub.

I agree that people shouldn't jump blind into Nix without first getting to grips with it though a VM or something, tho. The learning curve is quite steep.

[-] flashgnash@lemm.ee 3 points 1 year ago

I absolutely jumped straight in lol it's not too bad as long as you have some time to read the wiki and play around

Default configuration the installer generates is good to get you going

[-] aleph@lemm.ee 3 points 1 year ago

Yeah, if you have the time and the inclination to sit down and learn how Nix operates, then you'll be fine.

For myself, I realized that I am happier tinkering with it now and again rather than running it as a daily driver OS.

load more comments (1 replies)

I've been distro-hopping for quite a while. I've settled on Arch for the long haul.

[-] Raphael@lemmy.world 8 points 1 year ago

!remindme 2 years

The bot lives in our hearts.

[-] andrew0@lemmy.dbzer0.com 5 points 1 year ago* (last edited 1 year ago)

You can do it here too! Just tag @remindme@mstdn.social :)

[-] ForthEorlingas@lemmy.fmhy.ml 2 points 1 year ago

@remindme@mstdn.social 3 minutes test

[-] remindme@mstdn.social 2 points 1 year ago

@ForthEorlingas Here is your reminder!

[-] remindme@mstdn.social 2 points 1 year ago

@ForthEorlingas Ok, I will remind you on Monday Jul 10, 2023 at 4:59 PM PDT.

[-] Noodlez@programming.dev 4 points 1 year ago

I just made a post about my musing on NixOS so maybe read that? (here) Basically after the main learning curve it's pretty easy to use.

I'm getting the hang of their package manager as well, so if need be I can make my own (Like I would for Arch. The AUR scares me from a security standpoint).

My main advice is to not go against the curve. If the manual says that NixOS does it that way, do it that way, because going against the grain is like going through a cheese grater in this OS.

Unlike Arch where you can do things as you want, in Nix you do things using Nix. You can almost always accomplish what you want, but it's gotta be done the NixOS way. This is actually a benefit rather than a problem once you get used to it, because it starts becoming second nature, and it is extremely powerful.

[-] Sivaru@lemmy.world 3 points 1 year ago* (last edited 1 year ago)
[-] PipedLinkBot@feddit.rocks 5 points 1 year ago

Here is an alternative Piped link(s): https://piped.video/watch?v=AGVXJ-TIv3Y

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

load more comments
view more: next ›
this post was submitted on 10 Jul 2023
52 points (100.0% liked)

Linux

47344 readers
1234 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