19
submitted 1 year ago* (last edited 1 year ago) by L0Wigh@sh.itjust.works to c/linux@lemmy.ml

Hi everyone!

I saw that NixOS is getting popularity recently. I really have no idea why and how this OS works. Can you guys help me understanding all of this ?

Thanks !

top 50 comments
sorted by: hot top controversial new old
[-] Veritas@lemmy.ml 8 points 1 year ago

The increasing popularity of NixOS can be attributed to several factors that make it stand out among other Linux distributions. Some of the key reasons why people are switching to NixOS include:

  1. Reproducibility: NixOS allows for reproducible builds and deployments, ensuring that the same code will produce the same output across different environments[1][2].

  2. Easy rollbacks: NixOS has built-in rollbacks, which means that if a configuration change causes the system to be unbootable, it is easy to roll back to a previous working install[1][3].

  3. Nix package manager: NixOS uses the Nix package manager, which simplifies package management and system configuration[1].

  4. Multiple versions of the same package: NixOS allows users to have multiple versions of the same package installed, which can be useful for testing and development purposes[1].

  5. Stability: NixOS is considered a very stable platform compared to other Linux distributions, such as Arch Linux[3].

  6. Declarative configuration: NixOS uses a declarative configuration approach, which offers benefits over the imperative approach used by more traditional operating systems[4].

In addition to these features, the recent introduction of the open-source platform flox has made it easier for developers and enterprises to adopt NixOS. Flox expands on Nix's unique approach to package management and system configuration, providing convenience, collaboration, and control throughout the Systems Development Life Cycle (SDLC) [5]. This has led to an increase in the adoption of NixOS among developers and enterprises.

Overall, NixOS offers a combination of stability, reproducibility, and flexibility that appeals to developers and users who want a reliable and customizable Linux distribution.

Citations:

[1] https://itsfoss.com/why-use-nixos/

[2] https://techcrunch.com/2023/02/07/flox-raises-27m-to-bring-nix-to-more-developers/

[3] https://ramsdenj.com/2017/06/19/switching-to-nixos-from-arch-linux.html

[4] https://www.anthes.is/nixos-pros-cons.html

[5] https://finance.yahoo.com/news/flox-raises-27-million-introduces-140100442.html

[-] cypherpunks@lemmy.ml 1 points 1 year ago

this comment reads suspiciously like it was written by an LLM (eg ChatGPT). was it? please don't do that!

[-] Veritas@lemmy.ml 7 points 1 year ago* (last edited 1 year ago)

@dessalines@lemmy.ml @AgreeableLandscape@lemmy.ml @wazowski@lemmy.ml @k_o_t@lemmy.ml @nutomic@lemmy.ml @kixiQu@lemmy.ml an admin is telling me not to use LLMs. Is this the official stance of this instance? If so, please let me know so I can find another instance and add it to the rules, if not please choose admins that actually enforce the instance rules without making them up.

[-] RosalynKirk@kbin.social 2 points 1 year ago

If OP wanted a response from an LLM, they would have typed their question into an LLM. The least you could do is label it as such.

[-] Veritas@lemmy.ml 8 points 1 year ago* (last edited 1 year ago)

I use an LLM to edit everything I write. Does this mean I have to label everything as LLM-generated? Although I am the one doing the job, in the end, I'm just copy-pasting the output from the LLM.

[-] Zamboniman@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

I use an LLM to edit everything I write.

May I invite you to consider the pitfalls of such an approach?

Does this mean I have to label everything as LLM-generated?

Yes, that would be reasonable imo

[-] 20gramsWrench@lemmy.dbzer0.com 2 points 1 year ago

Rule or not, it's pretty lame, look at the size of your post compared to how much info it gives, had you copied a article from some basic linux news stite, it would have given mostly the same output, now think about what linking a page to an article about nixos as a response to op trying to start a conversation about it would look like, rude.

load more comments (5 replies)
[-] cypherpunks@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

thanks for clarifying. i'm deleting your generated comment per rule 4 (spamming) as well as two other generated comments you posted elsewhere; if another admin wants to undelete any of these i would be surprised.

please do not post LLM-generated comments without clearly labeling them as such. imo this is common sense, and doesn't need its own rule, rule 4 is sufficient.

load more comments (1 replies)
[-] lowdownfool@kbin.social 1 points 1 year ago

Do LLMs give citations? Otherwise, I could agree.

load more comments (1 replies)
load more comments (3 replies)
[-] lloram239@feddit.de 5 points 1 year ago

NixOS is the only[1] Linux distribution that feels like it is build around Free Software. Meaning upstream Git repositories can be treated as first-class citizen and installed directly without convoluted binary packaging system (that still exists in the background, but only as cache to speed up build times). Nix also makes it very easy to upgrade, downgrade, side grade, patch, override dependencies or otherwise change packages, or even just keep multiple versions of the same software around. Something many other distributions still struggle with or make completely impossible with the distributions own tools. Even the act of installing software in Nix becomes somewhat unnecessary, as you can just run software straight from the Git repository.

And best of all, it's all based on a very simple and transparent packaging system, if you ever used GNU stow, kind of like that, it's all held together with a bunch of symlinks and some environment variables. No contains, no ostree, none of those ugly workarounds, just plain old Unix stuff that you can find and grep through as much as you like.

Simply put, NixOS puts the joy back in Linux, while other distributions like Ubuntu try to actively trash their reputation with a proprietary App store and others like Debian just stagnate around and are still stuck with the same old packing system that was state of the art 25 years ago and hasn't improve much at all since than. NixOS just provides a dramatically cleaner and simpler approach that also happens to be vastly more powerful.

Another cool thing, if you don't wanna switch distributions just yet and reinstall the full NixOS, you can just use the Nix package manager itself on whatever distribution you are already using.

[1] There is also GNU Guix, which is basically a reimplementation of Nix with Guile/Scheme

[-] Tilted@programming.dev 5 points 1 year ago

I used NixOS for a couple of years. My experience is like this:

  1. It is a rolling release (mostly)
  2. You write a declarative configuration for your system, e.g., my config will say I want Neovim with certain plugins, and I can also include my Neovim configuration
  3. It is stable, and when it breaks it is easy to go back
  4. Packages are mostly bleeding edge
[-] Atemu@lemmy.ml 3 points 1 year ago

Note that there's both the rolling unstable channel and a bi-annual stable release channel.

load more comments (7 replies)
[-] featherfurl@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

Here's the straightforward version of why I use it:

  1. The entire state of your operating system is defined in a config file, and changes are made by changing the config file. This makes it super easy to reproduce your exact system many times and to know where all the many different configuration elements that describe your system are located.

  2. Updates are applied atomically, so you don't have to worry about interrupting the update process and if it fails, the previous state of your system is still bootable. By default every time you change something, you get another option in the boot menu to roll back to.

  3. Making container-like sub systems is super easy when you're familiar with nix, so you can have as many different enclaves as you like for different software versions, development environments, desktop setups, whatever without taking a performance hit. Old versions of stuff are very accessible without breaking your new stuff.

  4. The package manager has a lot of software and accessing nonfree stuff is straightforward. Guix looks rad, but nix ended up being the more practical compromise for my usecase. I didn't want to have to package a heap of software the moment I made the switch.

load more comments (1 replies)
[-] JASN_DE@feddit.de 3 points 1 year ago

everyone

Now that's what I'd call a stretch...

[-] barsoap@lemm.ee 4 points 1 year ago

Indeed, why would I switch, already have been running NixOS for 10+ years.

load more comments (1 replies)
[-] federico3@lemmy.ml 3 points 1 year ago

It's in no way "everyone", just a vocal minority.

[-] Eufalconimorph@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

I use ~~Arch~~ NixOS BTW.

[-] Lalelul@feddit.de 2 points 1 year ago

I switched around one and a half years ago. I must say, there are some hurdles to using NixOS. Mainly I dislike that it always takes around 20 times the effort to start and project. You make up for the initial time investment, because you end up with a far more stable setup, but still it does take some willpower to get things started.

[-] mrh@mander.xyz 2 points 1 year ago* (last edited 1 year ago)

I daily drive GNU Guix instead, and I would strongly recommend any emacs and/or lisp enthusiasts interested in the benefits of functional, reproducible, declarative, and hackable system management to give it a try!

load more comments (2 replies)
[-] IncidentalIncidence@feddit.de 2 points 1 year ago

I didn't get it either, but this video does a pretty good job explaining why it's different: https://www.youtube.com/watch?v=DMQWirkx5EY

[-] Syudagye@pawb.social 2 points 1 year ago

SYMLINKS

SYMLINKS EVERYWHERE

(also 6000 packages intalled on my system for some reason lol)

[-] Faresh@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

Doesn't it have a garbage collector like guix does (guix gc), which cleans up everything in the store that isn't needed anymore?

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

Yep, Nix-store -gc or some such will do something like this.

[-] SrEstegosaurio@lemmy.ml 1 points 1 year ago

nix-collect-garbage I configured it to run every 7 days.

load more comments (1 replies)
[-] chris@lem.cochrun.xyz 2 points 1 year ago

I've been using it for over a year and love it. A config file for your entire system, and built in rollbacks anytime something goes wrong. One language to configure everything, although in practice that doesn't always work. But I love it.

Some others have started why it works, here is some how. Nixos completely disregards the fhs. Packages don't install to anywhere standard, every package and configuration change gets it's on directory in /nix/store but through smart use of tracking everything there, it symlinks all those files to proper places and sets up the environment for them to know where libraries are.

This is then also why you don't need sudo privileges to install things. Your profile has an environment that is aware of your users packages and configurations, the system itself isn't effected because everything is symlinked.

Then because every update means new directories in /nix/store you can role back to your last configuration because plasma broke something or whatever.

However, it's a LOT to learn. Best place I know of is https://piped.video/watch?v=AGVXJ-TIv3Y&t=0

This guy did a good job for me. Hope this helps!

[-] fazo96@lemmy.trippy.pizza 2 points 1 year ago

I have been using for years on servers. My lemmy instance is hosted on it.

Although for desktop I had too many issues back in 2019 so I ended up back to Arch Linux and then EndeavourOS

Would be fun to try again to use it on desktop

load more comments (1 replies)
[-] le_saucisson_masque@lemmy.world 2 points 1 year ago

I keep seeing trends with Linux distribution like teenager looking for new fashion.

I think it’s mostly the very young Linux user who hope from one distribution to the another over and over whereas many just stick with what they got : Ubuntu, Debian, mint, maybe fedora.

NixOS is certainly interesting tho.

load more comments (1 replies)
[-] DAT@feddit.de 1 points 1 year ago

nah

didn't have enough time during the last half a decade to learn yet another thing

might be better fit than my current debian setup - but how would I ever know, since my current thing is good enough?

[-] root@precious.net 1 points 1 year ago

Thinking about this further..

I can purchase 10GE fiber, at home, for $299/mo.

I can purchase a solid 16 bay Supermixro server for around $5k

16TB drives are $168. There's $3,700 left so let's buy 21 drives (336TB, 235TB usable under raidz3 zfs). We'll leave that last $170 for .. electricity.

Leasing all of this from a regular hosting provider woul be much more cost effective. I work for one, what the heck are you doing man?

load more comments (1 replies)
[-] syboxez@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

NixOS is a fully declarative and reproducable system.

What this means is that you can create a single configuration.nix, which includes all of your applications, settings, aliases, environment variables, user account + groups, etc., and copy that over to another NixOS machine (including different architectures) and run nixos-rebuild boot to completely reproduce the system on that other machine.

The nix package manager is also really good at telling you if the configuration will break anything, where, and how, and refuses to apply until the issue is fixed.

Also every time you use nixos-rebuild, it creates a new generation of your NixOS install meaning if something ends up breaking, you can reboot into the old system.

So for example, I can theoretically have the exact same configuration across my desktop, laptop, phone, server, etc., minus the automatically generated hardware-configuration.nix, which is specific to the hardware.

Also Nix supports package overlays, which means that you can modify an existing package while the maintainer still keeps it up to date.

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

Oh boy my two cents time!

I love the concept of NixOS. A fully declarative , reproduceable system from a single config repo! Sounds theoretically like it would be my kind of thing.

Sure, theoretically, I could have a fully reproduceable system. The time spent declaring that fully reproduceable system though... I remember the first time I was trying to get my usual disk setup of, a luks encrypted btrfs partition with multi-factor enabled decryption/authentication.

On a normal install it would take like a day at worse to install your distro. My first attempt with NixOS took me almost 4 days of screwing around in configs. 2 of those days were probably cumulatively spent waiting for the config option list of the nixos manual to search for text. And the number of redundant config options which all do the same thing! Or, are supposed to all do the same thing but in actuality, only one of them does the thing they are supposed to.

I really want to love NixOS but it always ends up feeling like an exercise in my patience and time to do even the simplest of things. As such I find myself asking the question of, am I going to spend so much time reinstalling my distro that it's ever worth this initial investment?

Anyways, rant over. I actually have been debating switching back over for another try again myself I just have some very frustrating memories of my first attempts with the distro.

load more comments (1 replies)
[-] Atemu@lemmy.ml 1 points 1 year ago

the Nix community is still looking into more sustainable long-term solutions.

[-] TrippyTortuga@lemmy.ml 1 points 1 year ago

I will switch as soon as I can get proprietary Nvidia drivers to work on my laptop.

load more comments (1 replies)
[-] Herbstzeitlose@feddit.de 1 points 1 year ago

Because it’s the latest Cool Nerd Thing™ like Arch before it, and Gentoo before that. Most of the people raving about it probably don’t have much use for its features.

[-] IDe@lemmy.one 2 points 1 year ago

The features themselves are very useful for basically any user. Whether they are worth the non-standardness and issues that come with it is another question.

load more comments (1 replies)
[-] ambrosia@kbin.social 1 points 1 year ago

because it's good as hell and i don't want to have to spend time having to rebuild and reconfigure fresh OS installs or risk breakage when I could just use a config file that I know already works

load more comments
view more: next ›
this post was submitted on 19 Jun 2023
19 points (100.0% liked)

Linux

47461 readers
1263 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