this post was submitted on 19 Jun 2023
40 points (95.5% liked)

Linux

48389 readers
1020 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
 

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 !

(page 2) 50 comments
sorted by: hot top controversial new old
[–] chris@lem.cochrun.xyz 3 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!

[–] JRepin@lemmy.ml 2 points 1 year ago (1 children)

I tried it about a year ago and I don't know it did not convince me. Yeah it might be great for some niche developer oriented needs or deployment but for a normal OS usage, meh. I kind of see it as a current hype, just like crypto/NFT before, and AI now. For normal everyday usage I find openSUSE Tumblweed much more suitable and much more widely applicable.

load more comments (1 replies)
[–] 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.

[–] buckyogi@kbin.social 2 points 1 year ago

I ran it in a VM for several months and was underwhelmed. Sticking with Fedora.

[–] Atemu@lemmy.ml 2 points 1 year ago

Answering that question fully would require a PHD thesis.

Perhaps you could narrow down your question a little?

[–] joshthetechie@lemmy.world 2 points 1 year ago

People love Nix because of the OS configuration based around a single config file. Essentially, you define your system configuration in this file, including installed programs, then you rebuild your system based on that configuration.

The beauty here is that you can easily move this file to another machine running NixOS and reproduce your configuration there. You can also roll back changes by simply rebooting and choosing the last known good build and you're back in business.

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

It's been around for like a decade, but was recently make more approachable by offering a graphical installer.

[–] binboupan@lemmy.kagura.eu 2 points 1 year ago (2 children)

I'm using Void Linux and see no reason to move over to NixOS. The concept seems cool though.

load more comments (2 replies)
[–] Syudagye@pawb.social 2 points 1 year ago (4 children)

SYMLINKS

SYMLINKS EVERYWHERE

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

load more comments (4 replies)
[–] slacktoid@lemmy.ml 2 points 1 year ago

Overlays. Good package management, and lot of stability stuff.

[–] count0@lemmy.dbzer0.com 2 points 1 year ago (3 children)

For those who like a video format, I found this introduction quite informative.

[–] Clairvoidance@kbin.social 2 points 1 year ago* (last edited 1 year ago) (1 children)

Having the option to have multiple versions of a dependency without needing to have duplicates of the same version alá flatpak seems like it should've been a no-brainer on any linux distro.
With that said I'm very comfortable with my current system, so definitely not until I get majorly fucked by my life-choices
Definitely sounds like a competent player in comparison to most distros though.
And I feel like the terminal isn't as big a barrier as everyone makes it out to be (part of why I say that is because I think the entire concept of "beginner friendly distros" only makes the terminal seem more impenetrable through that wording)
All-in-one config is definitely something I would've hoped Arch had as well, and as a bonus I would love a system that kept all things related to the user in /home (I'm not completely sure Nix does but I may as well throw that in) (homed does not do that as it still has entities outside of /home that you better back up, in fact you'll risk being locked out of your user if you don't)

load more comments (1 replies)
[–] Clairvoidance@kbin.social 2 points 1 year ago* (last edited 1 year ago)

I was zzz until i heard having the ability to have different versions of packages installed at the same time without having the flatpak issue of having to have duplicates of the same package.
All-in-one config is definitely something I would've hoped Arch had (I just like the idea of everything user-related stored within /home because that makes fucking sense, no, homed doesnt do exactly that) so I'll definitely check it out if my harddrive ever crashes or something.

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

[–] torafugu@kbin.social 1 points 1 year ago (1 children)

I don't get the hype. I'm staying with Arch, as Nix seems to be mainly for developers.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›