this post was submitted on 19 Jun 2023
18 points (100.0% liked)

Linux

53624 readers
1854 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
[–] 20gramsWrench@lemmy.dbzer0.com 2 points 2 years ago* (last edited 2 years ago) (6 children)

I'm really not sure of where this would be anymore usefull than a simple bash script to install all packages you need since it doesn't do configs and that rollbacks are supported by some filesystems already. Also Having version specific dependencies is already a thing for flatpacks and such

[–] sickday@kbin.social 1 points 2 years ago (1 children)

Part of the purpose of NixOS is providing a means to build a reproducible environment that's easy to configure, migrate, and rollout. You can absolutely handle configuration of many different programs using either flakes or the native modules provided by nix. You can customize your entire system from firewall entries, to users and their shells, to the kernel itself and the kernel modules you'd want it to load, all in a single file or multiple files. If you want to try doing all those things in bash scripts, good luck and please share your experiences but don't expect it to be as easy as the Nix ecosystem.

[–] 20gramsWrench@lemmy.dbzer0.com 1 points 2 years ago (1 children)

so it does handle more than just conditional packages like the other zealots make it sound like

load more comments (1 replies)
load more comments (5 replies)
[–] le_saucisson_masque@lemmy.world 2 points 2 years 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.

[–] chris@lem.cochrun.xyz 2 points 2 years 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!

[–] slacktoid@lemmy.ml 2 points 2 years ago

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

[–] joshthetechie@lemmy.world 1 points 2 years 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.

[–] Herbstzeitlose@feddit.de 1 points 2 years ago (2 children)

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.

[–] ___hulk@kbin.social 1 points 2 years ago (1 children)

Solution without a problem. A cool solution but yeah.

[–] commandar@kbin.social 1 points 2 years ago

I don't think that's accurate, personally.

Declarative orchestration systems have been around for years and have a very real use case when needing to stand up servers in a replicable way. Nix is applying that approach at the system level.

I'm not entirely sold on wanting to put that level of effort into a personal desktop, but I don't think it's at all fair to say that it's not addressing real problems.

load more comments (1 replies)
[–] torafugu@kbin.social 1 points 2 years 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)
[–] IDe@lemmy.one 1 points 2 years ago

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

[–] JRepin@lemmy.ml 1 points 2 years ago

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.

[–] ambrosia@kbin.social 1 points 2 years 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

[–] authed@lemmy.ml 1 points 2 years ago

Never tried NixOS but I think I will try Qubes-Whonix next: https://www.whonix.org/wiki/Qubes

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

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

load more comments (1 replies)
[–] mrh@mander.xyz 1 points 2 years ago* (last edited 2 years ago) (2 children)

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)
[–] Syudagye@pawb.social 1 points 2 years ago (3 children)

SYMLINKS

SYMLINKS EVERYWHERE

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

[–] Atemu@lemmy.ml 1 points 2 years 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 (2 replies)
[–] TrippyTortuga@lemmy.ml 1 points 2 years ago (1 children)

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

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