Jump from Arch to NixOS? (lemmy.dbzer0.com)
submitted 3 years ago* (last edited 3 years ago) by 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
[–] 62 points 3 years ago (7 children)

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

  • source
  • hideshow 7 child comments
  • [–] 34 points 3 years ago (7 children)
  • source
  • hideshow 7 child comments
  • [–] [B] 39 points 3 years ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 6 points 3 years ago (2 children)

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

    Brilliant. Thanks.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 years ago (1 child)

    While I agree it's nice to have access to nixpkgs' packages in other OSs (I've never did this so take the following with a grain of salt), it is my opinion that you're missing out on the biggest features if you don't fully opt for the nix approach.

    I wouldn't reduce the nix tools to a package manager. It's a set to interact with the nix language, which primarily is a language to build a system from. You have the biggest advantage when you know that your system only consists of components built from your set of instructions (of course this pulls in a lot of stuff from nixpkgs) because that brings your system closer to reproducibility. It also makes it more consistent.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 17 points 3 years ago (2 children)

    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.

  • source
  • hideshow 2 child comments
  • [–] 5 points 3 years ago (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 14 points 3 years ago (16 children)

    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.

  • source
  • hideshow 16 child comments
  • [–] 3 points 3 years ago (8 children)

    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

  • source
  • parent
  • hideshow 8 child comments
  • [–] 4 points 3 years ago (5 children)

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

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 3 years ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 3 years ago (6 children)

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

  • source
  • parent
  • hideshow 6 child comments
  • load more comments (5 replies)
  • [–] 10 points 3 years ago (1 child)

    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).

  • source
  • hideshow 1 child comment
  • [–] 4 points 3 years 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.

  • source
  • parent
  • [–] 9 points 3 years 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.

  • source
  • [–] 6 points 3 years ago (4 children)

    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.

  • source
  • hideshow 4 child comments
  • [–] 5 points 3 years 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

  • source
  • parent
  • [–] 5 points 3 years ago (5 children)

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

  • source
  • hideshow 5 child comments
  • [–] 4 points 3 years 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.

  • source
  • [–] 4 points 3 years ago* (last edited 3 years ago) (1 child)
  • [–] 3 points 3 years ago

    You can install Nix on arch to try it out without changing your OS.

  • source
  • [–] 2 points 3 years ago

    I've never been able to daily drive Nix, or for that matter stand using it in a VM. I've always hated every aspect about it. I currently use Arch, but for stability reasons am switching back to (probably, might end up going for something debian based) Fedora on my desktop.

  • source
  • load more comments
    view more: next ›