this post was submitted on 19 Jun 2023
150 points (95.2% liked)

Linux

48372 readers
1352 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
[–] [email protected] 5 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?

[–] [email protected] 5 points 1 year ago (4 children)

SYMLINKS

SYMLINKS EVERYWHERE

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

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

Well, Nix has a very liberal definition of a "package". Your web browser, its wrapper script, a service file, a config file; those are all technically "packages" (or "derivation" as Nix calls them).

load more comments (3 replies)
[–] [email protected] 5 points 1 year ago (3 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 (3 replies)
[–] [email protected] 4 points 1 year ago (8 children)

What about Nix's financial issues? Have they been resolved yet?

load more comments (8 replies)
[–] [email protected] 4 points 1 year ago (2 children)

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

load more comments (2 replies)
[–] [email protected] 4 points 1 year ago

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

[–] [email protected] 4 points 1 year ago (1 children)

Hmm, I've never heard of NixOS. Is it suppose to be like blendOS or CurtainOS? A blend of different desktop environments?

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

It's unlike most other Linux systems I've ever used. The central idea is declarative structures. So your entire operating system, all of the apps and systems services and other custom things you need, are declarative in one place and hopefully easy to activate.

So instead of flatpak install, you add the program to a 'text file' and rebuild your system.

Everything is using the nix package manager which has been around since long before the distro nixos.

That's only the start of the rabbit hole, but if anything sounds interesting i encourage you to check it out!

load more comments (2 replies)
[–] [email protected] 4 points 1 year ago (4 children)

Glancing over the website, I thought it's an immutable OS, like Fedora Silverblue. I could imagine that it might be cool to use with Ansible and stuff. But for an average user? I can't really see the advantages in respect to the work you have to put in.

[–] [email protected] 3 points 1 year ago

NixOS is not immutable in the way Fodora Silverblue is, and way more declarative and reproducible than Ansible. But yeah it is not something you "need". Other distros work too, but NixOS is way more fun.

load more comments (3 replies)
[–] [email protected] 4 points 1 year ago (1 children)

I've been looking at it after numerous times I update Fedora only to have some tool break that I use daily. Then I spend a chunk of the day getting Virtualbox working again so I can do my job (write code for websites).

I haven't made the jump, but it looks very interesting.

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

I've made the jump twice, and jumped back twice.

Conda and any other reproducible computing library that relies on LHS Linux filesystem just doesn't work on it (okay it does, but more as an obstacle)

I'm okay with having nix the package manager on my default arch system though, since it is incredibly useful for cross compiling, and it let's me modify my system however I want.

load more comments (2 replies)
[–] [email protected] 3 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)
[–] [email protected] 3 points 1 year ago

Answering that question fully would require a PHD thesis.

Perhaps you could narrow down your question a little?

[–] [email protected] 3 points 1 year ago (3 children)

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

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

Thanks for this, it was definitely a nice overview. Not the first time I'd heard of NixOS, but I do seem to be seeing more frequent and more substantial discussions of it.

What I'm getting from all this, is that it looks to be a great way to set up reproducible desktop environments. And servers too, I suppose.

What I'm not getting from this: a compelling reason to switch from established players like RHEL and Ubuntu in combination with cloud-init and Terraform and the likes of Chef/Puppet/Ansible/Salt to spin up a cluster in the cloud, reconfigure, tear down, etc.

In case anyone is misreading me: this is not a dig at NixOS. It definitely looks interesting. Like, to the point that I'll at least spin up a VM on my Manjaro laptop and see whether I should perhaps consider wiping and reinstalling with NixOS. The "configuration through code" is extremely appealing here.

My concern here is corporate inertia. And before anyone gets gets ready to launch a diatribe about how corporations don't decide what the best tech is, I will agree with you. I've been around a while, and excitedly watched as Unix ramped up and displaced platforms like VAX/VMS and AOS/VS, using smaller and faster hardware. Then along came Linux and the battle for which distros would dominate.

As for configuration through code, I've been keeping a keen eye on things (tinkering when it's been possible to do so) since the days of cfengine and Jumpstart. I used to share this site with anyone that would listen to me; it's dated now, but the underlying principles are (were?) solid: http://infrastructures.org/

So for now, I think I'll have to limit my professional NixOS usage to tinkering and potentially useful side projects. For personal usage? Yeah, it might become my daily driver, but I need to find the time to tinker.

I will say that I'm presently involved in an effort to test something out that has my company's product available using rpm-tree. Not my decision, this is all being driven by a customer that has a lot of clout; they really, really want to use rpm-tree. It's proven to be a bit onerous at times.

What this NixOS discussion has managed to do for me is to have me wondering whether a NixOS approach would have worked out better; my sense is that yeah, maybe it would have. But my feelings here might simply be the result of "woo, shiny new object", which has definitely colored my opinions of things in my career of ~35 years. Something that I've had to restrain my excitement over, pending corporate sanity checks.

load more comments (2 replies)
[–] [email protected] 4 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)
[–] [email protected] 3 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.

[–] halo5 3 points 1 year ago

I actually read somewhere that Void Linux is the (not so) new up-and-comer...

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

All I year about from the linux community is NixOS and btrfs, neither of which I have any interest in. It almost feels like someone with an agenda is promoting these two with how prevelant they are.

[–] HarriPotero 5 points 1 year ago (1 children)

Well, I've been sold on sold on btrfs for over a decade. If you're telling me NixOS is just as great I just might have to give it a try.

load more comments (1 replies)
load more comments (3 replies)
[–] [email protected] 2 points 1 year ago (1 children)

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

[–] [email protected] 5 points 1 year ago (1 children)

The nice thing about nix and guix is that they're package managers, and so you get most of the benefits even if you're using a different OS.

I'm currently transitioning from Doom Emacs to my own config that's using guix. So far I've got a single manifest that contains all of the Emacs and Linux packages that are needed to run the config.

The guix part is really simple, but it allows me to reproduce my config on any Linux distro by cloning a repo and running a guix one liner. A different one liner can run it in a containerised environment. Also, I can roll back to any previous time I've updated something through that manifest, or pin a specific version of a package.

And that's just scratching the surface of what you can do.

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