NixOS - The Benefits of Being Different?

  Рет қаралды 6,801

The Linux Cast

The Linux Cast

Күн бұрын

Пікірлер: 83
@TheLinuxCast
@TheLinuxCast 7 ай бұрын
Leave us a review on Apple Podcasts! - podcasts.apple.com/us/podcast/the-linux-cast/id1247065729 0:00 Intro 2:03 Our Week in FOSS 2:06 Tyler's Week in FOSS 5:08 Matt's Week in FOSS 9:52 NixOS: Is it a Distro? 56:23 Nuggies of the Week 56:45 Tyler's Nuggie 58:14 Matt's Nuggie 1:00:25 Contact Info 1:02:34 Goodbyes
@shambali293
@shambali293 6 ай бұрын
I think the explosion of Docker, Flatpak, etc contributed to the upswing in Nix interest. In particular, as the limitations of containerisation became apparent, people started looking for better alternatives and found Nix.
@StefanoPompa
@StefanoPompa 6 ай бұрын
I am completely agree! This is an important factor for a deeper exlpanation on why now nixOs is 'the thing'. I would add the advent of IA that reduce complexity...
@matthiasbendewald1803
@matthiasbendewald1803 4 ай бұрын
On point. I started to use fedora silverblue and more precisely the bluefin variants, and started to love them. But they were basically a different proposal, you can't change the base system as easily, so you win reliability and lower maintenance but loose the ability to customize and adjust your system. Only NixOS is offering both as far as I know.
@the_gouda_man
@the_gouda_man 10 күн бұрын
I tried both for long time. I still prefer containerization because it at least provides some degree of security via sandboxing for example, somehow this concern is very often overlooked. Its especially important if you just need some proprietary app to do your job - at least you get to sandbox and restrict it from rest of the system where it doesn't belong. Nix doesn't resolve this issue.
@mathiassven
@mathiassven 7 ай бұрын
At 16:40 you say that you can't take the skills you have learned on NixOS and transfer to another distro, I would disagree. NixOS is an abstraction on top of normal Linux and FHS, so a lot of the times I had issues, I had to first go learn "how it is done on Linux" to then be able to fix the abstraction. If anything, using NixOS (to actually make things with Nix) has forced me to learn more about Linux in general than with a normal distro.
@lordkekz4
@lordkekz4 7 ай бұрын
I whole-heartedly agree! I often find myself looking other sources (mostly Arch wiki) to understand what I want Nix to do for me. In this way, NixOS also benefits from the great documentation for other distros.
@oserodal2702
@oserodal2702 7 ай бұрын
I think what Matt's missing in his whole spiel about 'NixOS being different' is the fact that NixOS makes clean shells dead simple. No more worrying about accidentally overwriting environment variables or bad dependencies or shaky shell scripts. What you have is what you declared in your shell.nix or flake.nix file, which is a software developer's wet dream (and thus may not appeal to a certain audience).
@oserodal2702
@oserodal2702 7 ай бұрын
Hot take: Moving away from FHS is s good thing.
@TakeThisLove
@TakeThisLove 7 ай бұрын
40:59 I don't think it is a fair comparation in this particular case, especially with gentoo. Gentoo is hard for literally no reason. It doesn't solve any existing problems by introducing this complexity. Arch reevaluated the decision about the installer, and now it is not pain in the ass for no reason anymore. NixOS, on the other hand, solves tones of existing problems, especially in the professional world. No one ever before didn't make the declarative configuration management of the system so damn good and fast. Prove me wrong! I know what I am talking about because I worked with all of ever existing configuration management systems throughout my career. They are all slow, hard to configure, and manage. NixOS is not that complex if you start to compare it with the other configuration management systems. Then NixOS didn't stop there and made it immutable, and you can have a state of the system that you can roll back at any time. That was a HUGE problem, and NixOS solved it. NixOS is complex not because it wanted you to flex in front of your friends in school. It is complex because it tries to solve real-world problems.
@TakeThisLove
@TakeThisLove 7 ай бұрын
Talking about popularity. I think NixOS first gained popularity in the professional world because it solves many existing problems. For instance, Hashicorp started using NixOS in their build systems before all that hype. My guess is what happened next is all these software and devops engineers started trying to use it as daily driver. That's exactly what happened to me. Only then I found out that it is quite popular on unixporn and other linux related subs
@fosattiems
@fosattiems 7 ай бұрын
Based
@andrabtedja
@andrabtedja 4 ай бұрын
I agree with you. Maybe I can describe that NixOS uses a magic script called configuration.nix that builds something from everything that has been declared from it, and does the same to everyone using it (if we talk about reproducibility). This configuration is recorded so the users can read the history because nobody will remember everything they had configured on their system. And nothing changed dramatically outside from what we don't change from the config file. So the system will run more predictable and this will leads to immutability (until it changed and rebuilt).
@MichaelWilliams-lr4mb
@MichaelWilliams-lr4mb 7 ай бұрын
As far as why now, NixOS was more of an experiment for a long time. I think it became more usable in recent years.
@Nebulorum
@Nebulorum 5 ай бұрын
Docker and declarative configurations are the basis of a lot of kubernetes deployment and cloud infrastructure. The concept is clear and tempting for anyone using modern cloud deployment. Now you can track the bleeding edge and rollback is really interesting.
@htx80nerd
@htx80nerd 5 ай бұрын
I never heard of NixOS until ~1 month ago on a random youtube recommendation
@hooflung128
@hooflung128 7 ай бұрын
It is not a case of semantics. NixOS is a Linux distro. It doesn’t matter how it works. It has a different system up convention than common distros because other distros followed an established convention.
@jeremymcguire7069
@jeremymcguire7069 7 ай бұрын
Tyler... My giddy aunt, your explanation of streamlining flakes is more confusing than picking the right flags to compile a kernel for gentoo. Also, you rock. :)
@redrush-hp9li
@redrush-hp9li 7 ай бұрын
make localmodconfig, there u go u got the right kernel configured for ur kernel. IF U don't want to just use gentoo-kernel-bin for some reason
@VioletJewel1729
@VioletJewel1729 7 ай бұрын
You said (paraphrasing), "NixOS is *not a distro* "; then mini-ranted about how people were criticizing you; and the said, "it's one of those *distros* that's at the forefront of the Linux community". I don't mean to be pedantic, but that is pretty funny. It is a distribution not just by definition but because that is a useful label - hence, why you naturally called it a distro. Labels are boxes, but these boxes can flex to accommodate slightly different occurrences. hehehe
@MichaelWilliams-lr4mb
@MichaelWilliams-lr4mb 7 ай бұрын
While I was using Nix OS, I didn't use Home Manager. Actually I tried it briefly but it limited what I could do freely in my home directory for me. I had to do everything through Home Manager. I was fine with the configuration file for the system, but I didn't want to have the home directory work the same way. I can see why people want to use Home Manager, though. I may go back to NixOS but right now I'm using my own MX Linux respin, Fearless Geek OS. I included the Nix package manager with it.
@brinkoo7
@brinkoo7 2 ай бұрын
It's about time there is a linux distro that is different. For those who do a lot of infra as code this distro is just another amazing tool.
@htx80nerd
@htx80nerd 5 ай бұрын
2:02 Tyler sipping mountain dew like a gentleman
@magnificoas388
@magnificoas388 7 ай бұрын
Matt, NixOS is just killing the distro hopping thing.
@htx80nerd
@htx80nerd 5 ай бұрын
'why now' companies / server admins figured out how awesome it would be for roll outs - this is what I've heard
@jgoemat
@jgoemat 5 ай бұрын
36:30 - it's natural for front end developers, seems like a package-lock.json file for node where it specifies exactly what you have installed so you can reproduce your system exactly... 45:00 - Why now? I don't know, this is the first I've heard of a system like this. nix-shell sounds awesome for developers. Have an 8 year old Angular 4 app you don't want to upgrade and need node 10 to run? Forgot that password or api key for the deploy? nix-shell to it and you have the exact environment and settings After upgrading your computer and reinstalling 3 times over the years... Sounds awesome to me.
@j_t_eklund
@j_t_eklund 7 ай бұрын
IMO What you call a "Linux distribution" is actually a "OS distribution using the Linux kernel and GNU tools" ... That is 'how' you are wrong. - If you use Nix(OS) the right way you will automatically learn enough to become a poweruser in any other "OS distribution".
@MichaelWilliams-lr4mb
@MichaelWilliams-lr4mb 7 ай бұрын
And you will always start bash scripts with #!/usr/bin/env bash rather than #!/bin/bash.
@ChrisMcDonough
@ChrisMcDonough 7 ай бұрын
One reason NixOS is a thing is because folks like you keep posting about it. Another is that every other distribution has become a clone of all the others, and there are problems that are unsolved amongst those.
@pupip55
@pupip55 7 ай бұрын
For me it's the reusability, self cleaning which makes it perfect for me and centralised management. With an amazing rolebacks system.
@jotix2570
@jotix2570 4 ай бұрын
NixOS also kill my distrohopping addiction... It's solve the problem of maintaining multiple machines flawlessly.
@htx80nerd
@htx80nerd 5 ай бұрын
I was drawn to nix (barely used it so far) because it would be cool for Work PC #2 to be exactly the same as Work PC #1. And then if I end up with Work PC #3 (due to system failure of 1 or 2) it'd be nice to get it 'up and running' easy.
@Tired_Night_Owl_in_the_Woods
@Tired_Night_Owl_in_the_Woods 4 ай бұрын
So... If we imagine all the parts of a system as lego-blocks, is Flakes somewhat a place where you store your manuals for building different figurines and on choosing one of them the system just builds it according to the manual?😅 Have I understood it right?
@abelgerli
@abelgerli 7 ай бұрын
Used it loved it. Being able to test new things with being able to have nearly unlimited snapshots for my config calms my mind. And lowers the threshold in your head to try new think without then thought in your head what amount of time it costs if you screw up.
@Muaahaa
@Muaahaa 7 ай бұрын
I started using Nix about 2 years when I was looking for an alternative to Homebrew for installing packages on my Mac. I came across a video from another newb talking about using Nix in totally the wrong way as an alternative and gave it a go. I liked the idea that I'd be able to use the same configuration across my Mac and Linux machines. I do work in software and currently have a DevOps sort of role, but I used to be a developer before that.
@Spencerhadley
@Spencerhadley 7 ай бұрын
My problem with Matt’s strategy of assuming people are morons until he can see their intelligence is that he is clearly leaving his blind spots unexamined. The eMacs to Vim is analogous to NixOS to all other distros has truth in it if you don’t see the shortcomings. Once you know and have configured your Nix flakes or configuration files they can easily act as a manifest of your preferences. Emacs and vim usage have muscle memory issues that I don’t accumulate with Nix.
@TheLinuxCast
@TheLinuxCast 7 ай бұрын
In my defense, I think I go on to say I'm a moron too. :shrugs:
@Spencerhadley
@Spencerhadley 7 ай бұрын
@@TheLinuxCast Alright, true enough. I think you got it in you to see the good in yourself and others. I'll leave it be though.
@zeocamo
@zeocamo 7 ай бұрын
you can see a nix shell as if you start bash in bash but this new bash got more programs then the one you start it from, nix link the extra software in the shell, just like it do when you build nix, but the shell is not saved and if you quit it the links is gone, the software is still install but you can't call it.
@htx80nerd
@htx80nerd 5 ай бұрын
'doing something difficult ' - yes sure you can brag, but you also get a sense of accomplishment. I did a debian minimal 'netinstall' and had to setup everything manually. It was hard, things didnt work. But in the end it was a much more satisfying situation than clicking 'next next next' on a GUI Linux OS installer.
@esra_erimez
@esra_erimez 7 ай бұрын
This video is interesting and informative
@glebglub
@glebglub 7 ай бұрын
part of my guess in why Nix OS has only just started to get noticed is because 10-15 years ago it took 5 hours to install an OS, but now it takes 5 minutes. it's the same reason nobody tries to overclock their RAM; 1 test is just hours of sitting there, waiting... beforehand it was "I wanna install ONCE not because I'm lazy, but my hardware is ASS and I'm STILL ON DIAL-UP" ...maybe
@zeburgerkang
@zeburgerkang 7 ай бұрын
What you don't use scratch?
@warthunder1969
@warthunder1969 7 ай бұрын
NixOS is quite weird from what little experience I have with it. Matt's comments at least made me feel like I'm not crazy
@brod515
@brod515 7 ай бұрын
@5:24... I almost fell laughing... I basically just watch content to hear you. I don't even know much about distros
@This_Guy-
@This_Guy- 7 ай бұрын
Nix is interesting in concept. I hate immutable part i like where you take your config and install in multiple computers . If arch implement this config thing then damn . I use arch by the way
@andrabtedja
@andrabtedja 5 ай бұрын
NixOS is not immutable in my opinion. It has a different approach like Silverblue. Cmiiw
@warthunder1969
@warthunder1969 7 ай бұрын
Can say that LUG was fun and is worth joining.
@tabletaccountforyoutube
@tabletaccountforyoutube 7 ай бұрын
Can any NixOS gurus tell me what the "correct" or recommend way to install software would be? Do you just edit the config file, and the have it pull down the new packages? Or are you supposed to use "flakes" whatever that is? Reason I ask, is because I thought I was doing it right but then saw that in the NixOS website that the way I'm doing it is being depreciated or wrong. In any case I'm just utterly confused.
@zeocamo
@zeocamo 7 ай бұрын
i am newish to nixos, but i know enough to answer your question, there is no "correct" way, but yes it is just to edit the config file, as flakes is still in beta, but many that is using Nixos say that flakes should not be in beta any more. so way i done this is with flakes, i made a .dotfiles in my home folder, and i get my flake in there and flakes get the hostname in as a argument when you build it, so i got a folder with the name of my laptop and workstation hostname, so i can have the hardware config there. but see Tyler's nix config it is a good start
@kdb424
@kdb424 7 ай бұрын
It's all declarative, so you'll want to edit the files. The only big things you can't declare on NixOS normally is nix channels, and locking package versions, which is all flakes does. Most of what "flakes" code is, is just normal nix code. If you don't need version locking, or managing multiple systems from the same set of shared files, it's not a big deal to most people.
@tristen_grant
@tristen_grant 7 ай бұрын
I think NixOS doesn't like my Intel Arc A750. I can go through the installer but past that, its just the tty. Can't get it to work at all. :(
@richardlesperance8259
@richardlesperance8259 7 ай бұрын
I am a linux nube dumb ass for 8 years now and i use Manjaro!!!
@conjurermast
@conjurermast 7 ай бұрын
I have a really dumb question about Nix. Is it possible to install binaries, or outside of flatpak etc you have to compile every time you want to install something, as if Arch only had the AUR?
@iynaix644
@iynaix644 7 ай бұрын
Yes, you can create new packages / override existing ones and they will automatically be compiled every time one of their dependencies is updated. Your custom packages are managed as part of the system.
@angeldude101
@angeldude101 7 ай бұрын
The recommended method is to install from source and package the application in a Nix derivation if it's not already in nixpkgs. It is possible however to run binary packages in a number of ways, including hot-patching the binary to change where it looks for dependencies, using steam-run to run the application in a chroot that presents itself as a normal Linux system (the name coming from the software that the method was originally designed for and that people were _really_ interested in running on NixOS), or using nix-ld and envfs to redirect the usual /usr/bin and /lib to point to their nix store equivalents.
@richardlesperance8259
@richardlesperance8259 7 ай бұрын
They say it doesn't break???
@andrabtedja
@andrabtedja 5 ай бұрын
It doesn't break. What actually happens is you fail to rebuild if there are errors in the configuration file. Easy rollback is one of the features.
@magnificoas388
@magnificoas388 7 ай бұрын
Well well I think the new hype about NixOS is caused by the new graphical installer ! And people like Tyler discovered NixOS like this :)
@VictoriaMan69
@VictoriaMan69 7 ай бұрын
I'm here for the nuggies.
@htx80nerd
@htx80nerd 5 ай бұрын
haha @ the openSUSE comment 1:50
@kennethpaulsen7510
@kennethpaulsen7510 7 ай бұрын
18:25
@QWERD195
@QWERD195 7 ай бұрын
i'd define flakes as a system of distribution of reusable nix constructs (which might or might not be related to each other). A nix construct is a nixos config, nixos module, nix shell, a regular app, etc.
@xbz24
@xbz24 7 ай бұрын
nice
@snowSecurityneeded
@snowSecurityneeded 7 ай бұрын
I love nixOS, Do not use it if you have no need for the features and benefits it gives. please don't try and make it an arch meme.
@HasaniTempest
@HasaniTempest 7 ай бұрын
Have you tried Zorin OS?
@andrabtedja
@andrabtedja 5 ай бұрын
Zorin is another Ubuntu Flavor. It's great for beginners, but it's in a different case if compared to Arch or NixOS
@j_t_eklund
@j_t_eklund 7 ай бұрын
No handholding is done in NixOS community by default.. Thus you need to learn how to use it and understand what you do. There is no actual straight line/guide to follow. Because YOU build your system the way you want it to be. - This is also why it is gaining so much ground. It teaches people to be smarter.
@Xarius86
@Xarius86 7 ай бұрын
Lol. It used to be Arch elitism...I see it has migrated to another home.
@j_t_eklund
@j_t_eklund 7 ай бұрын
@@Xarius86 Not really, moore so that the design is such that you have to learn to use it. There is plenty of help to access. Many people who give of their own time to help solve problems.
@kdb424
@kdb424 7 ай бұрын
@@Xarius86 At least when the Arch people said "RTFM" it was truly because the manual, and all of the Arch docs are so extensive that they have become the de-facto standard docs for all Linux distributions to reference. Nix docs are lacking, but the longer I use it, the more I learn it's nearly impossible to write docs the way people expect them to exist.
@oserodal2702
@oserodal2702 7 ай бұрын
​​@@kdb424Looking from outside in, there are 3? officially -supported- endorsed docs (discounting the man pages), with none of them giving proper attention to nix flakes. At this point, just try it for yourself and see how it goes. The distro itself is able to do rollbacks anyway, so breaking changes are less of an issue than in other distros.
Is NixOS Overrated?
51:33
The Linux Cast
Рет қаралды 12 М.
NixOS Has One BIG Problem
17:48
The Linux Cast
Рет қаралды 69 М.
Фейковый воришка 😂
00:51
КАРЕНА МАКАРЕНА
Рет қаралды 6 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 33 МЛН
Real Or Cake For $10,000
00:37
MrBeast
Рет қаралды 59 МЛН
Linux Sucks 2024
1:14:16
Bryan Lunduke
Рет қаралды 84 М.
The Tragedy of systemd
47:18
linux.conf.au
Рет қаралды 1,1 МЛН
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
DistroTube, We Need To Talk...
18:04
Trafotin
Рет қаралды 27 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 84 М.
openSUSE: Is it Good?
25:15
The Linux Cast
Рет қаралды 30 М.
Why I Have to Use Windows
17:26
The Linux Cast
Рет қаралды 19 М.
You Should Use Flakes Right Away in NixOS!
26:09
LibrePhoenix
Рет қаралды 64 М.
Фейковый воришка 😂
00:51
КАРЕНА МАКАРЕНА
Рет қаралды 6 МЛН