r/linuxmemes • • 4d ago

LINUX MEME Nix solves all problems, i swear.

Post image

everything i do is nix nowadays.

(fr tho, i'm pretty sure nix could even declare a stable relationship for me)

221 Upvotes

49 comments sorted by

•

u/AutoModerator 4d ago

IMPORTANT: Subreddit Rules & Reminders

Please REPORT posts that violate any of the following rules!


Posts You Should Report

  • Tier Lists: Every tier list MUST include Hannah Montana Linux in S Tier, regardless of what the tier list is ranking.

    • S Tier MUST be the highest tier on the list.
    • Hannah Montana Linux MUST be in that top S Tier.
    • No exceptions!
  • Saying Android Isn't Linux: You voted that Linux is Android and saying it's not is anti-Linux propaganda.
  • Ban Show-Off Posts: Users posting screenshots or otherwise showing off bans from other subreddits.
  • Anti-Linux Posts: Only ONE anti-Linux post per week is allowed across the subreddit. We used to get dozens every day!

Help by reporting

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

28

u/Empty_Wheale_7988 3d ago

Nix people are sysadmin for hobby.

20

u/SDG_Den 3d ago

im actually a windows sysadmin as part of my job.... nixOS is how i relax lmao

it's just... everything is so much easier.... it's beautiful.

1

u/Lonely-Scarcity-3387 7h ago

I’m a gamer for a hobby. And I love NixOS for it.

61

u/-rng_ Genfool 🐧 3d ago

Nix is pushed so heavily because the victims of the sunk cost fallacy need more people to get nix so someone can write documentation for it

6

u/SDG_Den 3d ago

actually, the documentation is pretty solid now.... assuming you use the right one.

yeah, there's multiple sets of documentation now, in various places, and no, search engines or LLM don't reliably provide the same one first. it is also not clear which is the official one unless you go digging for forum posts talking about which one is official.

i think what might have happened is multiple groups tried solving the lack of documentation at the same time.

4

u/errepunto Arch BTW 3d ago

In my opinion, Nix has three major issues for now:

  1. Documentation is scarce and randomly located.
  2. There are two sets of commands (nix- whatever and nix).
  3. Flakes thing is poorly documented and poorly integrated with nix-anything commands.

These points are resolved in Guix (but it has its own problems, I know).

In short, Nix is amazing, but it needs to organize his documentation and commands to be ready for a wider audience.

2

u/SDG_Den 2d ago

honestly the problems with the two CLIs and flakes would be resolved if they were promoted from experimental features to defaults.

like, its been so long. why is nix-command (which gives you the vastly superior nix * subcommands instead of separate cli nix-* ones) and flakes considered experimental still?

1

u/errepunto Arch BTW 2d ago

This is a very good question. It has been experimental for years. It's time to step forward and make official documentation around the nix command and nix flakes.

2

u/Rikudou_Sage 2d ago

Nah, some of us genuinely like it.

1

u/PrudententCollapse Sacred TempleOS 2d ago

... are you sure it isn't Stockholm syndrome?

(I use NixOS btw)

2

u/Rikudou_Sage 2d ago

Jokes aside, no, I really love the idea. The lack of documentation sucks, the nix language is not the best I've ever seen, but what you can achieve tops those two issues for me.

107

u/xgabipandax 4d ago

Nix solves all problems that Nix created

3

u/Maskdask New York Nix⚾s 3d ago

Like what?

18

u/exylvii 3d ago

the fact that its completely incompatible with other linux distros

12

u/SDG_Den 3d ago • Bravo

you can install nix on any linux distribution as well as macOS, BSD, android and there's even a version for windows now.

nix =/= nixOS =/= nixlang =/= nixpkgs.

10

u/Maskdask New York Nix⚾s 3d ago edited 3d ago

Nix is a package manager that works on all distros, even MacOS

And if you're referring to NixOS, aren't all families of distros incompatible with eachother?

7

u/etrigan63 3d ago

Nope. Different distros use different package managers but follow a common file tree. Nix/NixOS foregoes this and any attempt to install a non-repo app (like compiling from GitHub) fails because the expected folders are not there or read only. You want an app on Nix/NixOS? Be prepared to be ignored by packagers or simply to package it yourself and they will look at it when they are not busy. Or prepare yourself for the inception that is flakes.

2

u/Rikudou_Sage 2d ago

like compiling from GitHub

How do you think software is converted from source code into executable binaries?

Sure, you have to wrap the the commands in a derivation, but that's the whole point of NixOS.

2

u/Maskdask New York Nix⚾s 3d ago

Nix is the world's largest package manager in terms of packages, so it has basically everything. And anything niche or really new that I've wanted to install on NixOS that hasn't been packaged yet I've been able to point an LLM agent at and say "create a Nix flake for this" and after a few minutes it runs. Not sure what you against flakes, they're awesome.

1

u/exylvii 3d ago

yes i'm reffering to nixos; no, they are all compatible, you can compile a binary and run it on any fhs compliant linux distro

1

u/Rikudou_Sage 2d ago

So is NixOS, you just might need to patch the interpreter and similar. Not like software assuming a hardcoded path to an elf interpreter is the smartest design ever created.

3

u/Fun-Ticket5060 3d ago

even though I use and like nixos very much sometimes it's super annoying that you cannot run a lot of random things and you have to go to great lengths to be able to. if a package is not in nixpkgs (and it happens more often than you think, especially with more niche stuff) good luck. not many apps are compatible with linux to begin with, and when they are it's something like fedora, debian, arch — and very rarely nixos because developers don't understand it (rightfully so, it's not that widespread) and can't be bothered to properly adopt their app/utility. If not for the AI that helped me throughout my journey (sorry anti ai people) I would've quit day 1. I genuinely don't think the nix way of doing things is superior or that everyone should try it, if not for all the wasted time and sunk cost fallacy I'd definitely move to a more "traditional" distro because it's just easier and more convenient, but I have already set up "my own thing" and moving away from it would be too wasteful

1

u/Rikudou_Sage 2d ago

Nix has functions specifically for converting deb or rpm into a nix package, iirc.

8

u/Master-Chocolate1420 3d ago

Nix Bash-es all problems that Nix created

FTFY

3

u/HotChainsawLover 3d ago

You can't trick me. I won't have this bloat on my 'puter.

4

u/SDG_Den 3d ago

ur loss buddy /j

1

u/Rikudou_Sage 2d ago

What do you mean bloat? Old package version never ate more than like 2 TB of my disk space.

9

u/LelouBil 3d ago

No actually, for real.

After administering a heap of ansible-managed config for a server, I switched everything to nixos.

It's so refreshing, being able to build your config to get errors before deployment, and even when you deploy and it fails, since it makes heavy use of systemd it's not a random script failing silently, you get a service failure and the relevant logs in your deployment output to diagnose. (and the server rolls-back of course)

You can even spin up a VM with the exact same config.

Its really amazing.

14

u/Maskdask New York Nix⚾s 3d ago

Nix and NixOS are criminally underrated

1

u/nevergoodenough54 4d ago

ppl who I've known the that installed this only installed it for the package manager

4

u/SDG_Den 3d ago

well duh, the package manager is the core of nix.

nix is a package management strategy first, the package manager is born from that, and everything else is an expression of that same strategy.

the way a nixos system works is *effectively* by treating the entire system as if it were a package, with all of its component being its dependencies.

2

u/Dehnus 3d ago

Nah, then there is a hug and then he too is nix! :P

3

u/al2klimov New York Nix⚾s 3d ago

I use it btw

1

u/NinjaLaserHaifisch 2d ago

Hits extra deep when you’re german 🚬

1

u/Gloria_ad_libertas 4d ago

Install NixOS. Thanks.

-5

u/Linguistic-mystic 4d ago

Does it solve the systemd problem though?

7

u/SDG_Den 4d ago

finix does :3

17

u/LeateWonceslace New York Nix⚾s 4d ago

What is even the problem with SystemD?

19

u/Definitive-Username 3d ago

A vocal minority very active on Reddit

17

u/Definitive-Username 3d ago

Unfortunately, no. As the only problem with systemd is a vocal minority on Reddit, that cannot be fixed by any distro.

4

u/-Ilovepokemon- Not in the sudoers file. 3d ago

Devuan, Void, Artix, MX, and 130 others: hello

9

u/Big-Afternoon-3422 3d ago

Mickey, John, Alexia, Dorothy and 130 others: hello

4

u/crow_161 3d ago

Guix does. It's nix's cousin in scheme(lisp). The init system for Guix system is Shepard

2

u/Maskdask New York Nix⚾s 3d ago

Nix is a package manager

2

u/MeatPiston 3d ago

The only problem with systemd is when you have a system that doesn't use it.

-2

u/benchonbench 3d ago

Except comfort. Or why do I use vim? To rebuild the system all the time? L OS.