25 points

Don’t listen to him! Just start using Nix to manage dependencies and dev environments for your projects but keep your OS the same until you are really good at Nix

permalink
report
reply
11 points

Yeah, you want to sniff nix first before you mainline nixos.

permalink
report
parent
reply
6 points

Nah, best way to learn is to fuck your shit up until you fucked it back into a usable state

permalink
report
parent
reply
4 points

Yeah, you want to sniff nix

MMMMH, lice killing cream 🤤🤤

permalink
report
parent
reply
2 points

How does that work? Let’s say I’m on pop os developing a thing, how would I manage deps and dev envs with nix then? In a VM or what?

I’m a Linux nerd, but I totally don’t get nix. Tried to install some nix package manager on my Debian based distro and it was completely broken (the nix thing, not my os)

permalink
report
parent
reply
2 points
*

I um… didn’t get started yet. But a colleague demoed it to my and it’s kind of between virtual environments and containers, if you’re familiar with Python.

You write a Nix config and specify exactly which versions of which package you want to have. Reproducibility is the main selling point of Nix. Things don’t just break overnight because a dependency of a dependency of a dependency got upgraded. You can always go back to exactly what it was like before. Guaranteed. That’s pretty cool.

Ok so you got that config, then you build and activate it, and it replaces your shell. You enter the Nix shell. You still have access to all your files and directories, but your Nix config controls exactly which versions of your tools you have. gcc, npm, python, maven, whatever you use.

You can see why this makes people want to build an immutable OS.

The main drawback of Nix is that it has a bit of a learning curve. Hence why I haven’t started yet. Maybe it’s time though.

permalink
report
parent
reply
4 points

I want to but COSMIC DE.

permalink
report
reply
8 points

You can absolutely install Cosmic with Nix

permalink
report
parent
reply
3 points

How do you do that?

permalink
report
parent
reply
3 points

You can use this flake to add cosmic to your configuration

permalink
report
parent
reply
0 points

Too gimmicky

permalink
report
reply
78 points

I’d been hearing a lot about NixOS so I did a VM install. It wanted me to setup my own partitions manually without even giving preset sane defaults like I was back in 1994 installing Slackware.

Nope. My OS is a tool, not a lifestyle.

permalink
report
reply
46 points

There is a Gnome/KDE installer too now ;)

permalink
report
parent
reply
11 points
*
Deleted by creator
permalink
report
parent
reply
9 points

I mean, if we’re talking sane you shouldn’t need more than one partition.

permalink
report
parent
reply
10 points

Encryption? Also you’re assuming there’s only one block device…

assuming the person before did not just mean partitioning, but also all other storage-related tasks

permalink
report
parent
reply
7 points

Slackware still does that in 2024.

permalink
report
parent
reply
1 point

You can even still launch Slackware from DOS!

permalink
report
parent
reply
20 points

This is the opposite of me. I always get nervous when I don’t have precise control over how the disk layout looks. I explicitly decided for the non-graphical installer when I first downloaded NixOS

permalink
report
parent
reply
11 points

My OS is also a tool!

Those jerk OSs and their bullying!

permalink
report
parent
reply
8 points

I need to compile my kernel… by hand with tools from beige-age computing.

permalink
report
parent
reply
1 point

So? If that’s too much for you, use Chrome OS

permalink
report
parent
reply
7 points

Sounds like you haven’t done it in a while. It has calamares installer now.

permalink
report
parent
reply
5 points

How long ago did you try? You should try again, I did not have this experience setting up with the graphical installer a few weeks ago.

permalink
report
parent
reply
1 point

Where do you draw the line though between tool and lifestyle? At setting up partitions (which is a trivial thing I would not mind at all)?

permalink
report
parent
reply
3 points

it wanted me to setup my own partitions manually

You’ve obviously never used nix, it’s GUI installer can auto configure just fine.

When your OS AND apps are declared and stateful a lot of risk and complexity is removed. Configuring is just a bad experience with poor usability and worse documentation.

permalink
report
parent
reply
13 points

So, I’m an arch-btwistan, what does nixos do for a gamer/youtuber/low-tier-wannabe-musician? Legit asking, because I really don’t know what makes nixos tick, and the (very little) I’ve read doesn’t really explain the benefits of it

permalink
report
reply
9 points

Everything about your OS is defined in a config files and can be rebuilt. You break something you don’t need to do a complete reinstall if you can’t figure it out. Just rebuild the last working configuration. Sharing builds with your friends is easier.

For gaming getting your graphics card going is much simpler. I never had steam and proton games run as well as they do with they nixos defaults

permalink
report
parent
reply
3 points

For gaming getting your graphics card going is much simpler. I never had steam and proton games run as well as they do with they nixos defaults

you clearly haven’t used EndeavorOS then, since there everything just works.

permalink
report
parent
reply
6 points

It sounds like a Dockerfile for your system OS?

permalink
report
parent
reply
4 points
Deleted by creator
permalink
report
parent
reply
3 points

Basically but it’s better, nix has a unique way of doing the underlying the logic which as is own benefits. Also since nix is not a container it doesn’t have any of the speed penalties that come along with that. Since nix is functional as well, it means all operations can be undone. So where you might te build a docker image from scratch or by using a A/B system like other immutable distros it allows nix to just modify the system while it’s running with minimal side effects.

permalink
report
parent
reply
17 points

Very well built patches and ways to share them. This is a good thing for gaming as we can try bleeding edge like Arch. But without having to rely on AUR or scripts to copy locally. Thanks to Nix Flakes you simply reference the flake someone shared (after double checking what is in it) and rebuild a NixOS derivation and voila, patch installed. I installed a complete SteamOS in 1 minute with this, reboot and everything works. Even with your locally signed in Steam account 👌

permalink
report
parent
reply
12 points

nothing imo, it’s main benefit is making reproducible environments, imagine you need 10 machines to have the exact same things running on it, setting up each one would be a PITA and keeping them the same is near impossible, nixos solves that problem.

it’s not gonna do anything for you, most people just want a working OS system on your PC so that you can do the things you need to do, if you have that, there is no reason to be fucking around with nixos.

permalink
report
parent
reply
1 point

safely upgradable rolling released software

permalink
report
parent
reply
3 points

Imo the worst part of nix is how it turns into this chicken or the egg scenario. Let me explain, nix is very good at reproducing things. It ensures that all things are the same when installing a piece of software. Once someone writes a nix module, generally speaking, it “just works”. You can always take that nix file and get it to run the same way on another machine. But since most gamers/musicians don’t give two shits about reproducible software, it doesn’t get packaged. And with no packages they will never be interested to get into nix.

As I write this though I realize, many open source projects have struggled with getting contributions from the community. Personally, I just think nix solves the issue of “idk, it works on my machine” better than anything I’ve seen. Being able to reproduce software and stop dependency issues is a very valuble thing, just not for everyone.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t fork-bomb your computer.

Community stats

  • 6.5K

    Monthly active users

  • 1.1K

    Posts

  • 24K

    Comments