this post was submitted on 16 Jun 2023
49 points (96.2% liked)

Linux

49711 readers
731 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
 

Seems like this distro is getting a lot of traction recently. Has anyone tried it? Is it any good?

top 30 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 2 years ago (1 children)

Being using it for almost 2 years. Was very weird at the beginning because of the "declarative" approach they used. But once you get used to it.. Its a life changer.

[–] [email protected] 7 points 2 years ago (2 children)

I've been using it for around a year and really like it so far. It is however very different from almost every other linux distro, so I would think carefully about it before switching. If you're not prepared to invest significant time and/or don't really care about the advantages of NixOS, you should stay away from it.

Pros of NixOS:

  • Declarative configuration: This is probably the main selling point. The whole system configuration and installed packages are neatly in one place. Using home-manager, this can also replace config files for many programs. All of this is especially useful if you share that configuration between multiple devices.
  • System rollbacks: If something breaks, simply boot into the previous generation.
  • Very customizable system: You can freely choose your desktop environment & basic system packages.

Pros of Nix in general (you don't need to install NixOS for this):

  • Huge package repository (also very up-to-date if you want to use the unstable channel)
  • Consistent developer environments that can easily be shared

Cons of Nix & NixOS:

  • Very steep learning curve: You essentially have to learn (the basics of) the Nix programming language.
  • There are often many ways to do things without any clear recommendation: Channels / Flakes, whether nix-env should be used, etc.
  • The documentation isn't always great (although it is improving)
  • If something is not packaged in nixpkgs, it can be difficult to run it, since NixOS doesn't follow the Filesystem Hierarchy Standard. There are some tools to run flatpaks, appimages and arbitrary executables, but especially the later might not always work out of the box.
[–] [email protected] 4 points 2 years ago

I hear you with the "many ways to do things". The flexibility in the language to get from input to outputs means every GIT I look at has differently constructed flakes. Finally, after pouring some time in these last couple of weeks i am grasping the basics. Zero to Linux https://zero-to-nix.com/ was the first time it came together for me.

[–] simple 1 points 2 years ago* (last edited 2 years ago)

Thanks for the in-depth review. I think I'll give it a shot.

[–] [email protected] 5 points 2 years ago* (last edited 2 years ago)

Take this with a grain of salt.

I loved using NixOS with flakes, home-manager and custom minimalistic setup with XMonad or Sway. I was also using Nix with direnv whenever I could for my development projects. At the same time I've noticed that a lot of my programming focus (and time) was being used by solving niche issues with Nix, packaging things for Nix, suddenly breaking applications (because of upstream changes within nixpkgs). I've also had issues with using other ways of providing development environment (npm, pip stuff etc).

I was using unstable channel so breakages part is most likely on me. But apart from that I'm left with the feeling that NixOS is a huge time sink which isn't necessarily worth it if you aren't managing a whole fleet of machines.

Nowadays I am happy not using Nix at all. My development needs are fullfilled by what is available via dnf (Fedora package manager) and npm. I also use podman containers and flatpak a lot more since I've switched to Silverblue.

[–] [email protected] 2 points 2 years ago (1 children)

I feel like nix could be a good 'project' distro, but I would hesitate on installing it on my main computer until I was quite familiar with it and had a few months with it on another computer.

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

I agree, but I've decided to play with it in qemu for a while. I've also been looking at Chimera and have that in a vm too. Currently I use Void, btw

[–] kerneltux 2 points 2 years ago

I've played with it an a few occasions, and I like what they're going for. However, I just couldn't put it onto a production computer.

Right or wrong, I feel like I'd have to over-write a LOT of muscle-memory from using regular distros for the past 8 years to use it regularly. If I'd been working in dev-ops, I may feel differently.

[–] Raphael 2 points 2 years ago

NixOS: The Most Over-Engineered Linux Distribution

[–] [email protected] 1 points 2 years ago

Yes it is, but I only use it on a server

[–] [email protected] 1 points 2 years ago

I am both a fan of NixOS and The Linux Experiment, but I'm kind of surprised he liked it so much.

[–] [email protected] 1 points 2 years ago
[–] [email protected] 1 points 2 years ago

I like Nix and used it for a year or so before kind of just getting tired of using a non-standard distro. Mostly just felt like it was trying to solve a bunch of problems that I never had.

Seems like it's targeting devops, only I can't really picture a devops situation where the powers that be would be interested in Nix...

load more comments
view more: next ›