🚀 My Practical Neovim Course (private community included): ampersand.onlinecoursehost.com/courses/neovim ⚙ My NixOS config: github.com/Andrey0189/nixos-config 📝 PhD thesis: edolstra.github.io/pubs/phd-thesis.pdf
@oglothenerd6 ай бұрын
You and Vimjoyer are probably the future of NixOS actually having good tutorials and documentation.
@callyral6 ай бұрын
There are also a lot of unofficial guides online, a lot of them in blogs.
@aleclowry76545 ай бұрын
I’m gonna bootstrap this comment to represent my other favorite nix KZbinr youtube.com/@librephoenix?si=MzAUufEq6e3PEzEN
@Microphunktv-jb3kj4 ай бұрын
does it work in virtualbox... (some distros literally dont because of not real hardware... or lag hardcore..) i wanna conf a hyprland based nixos.... got nixos installed as windows subsystem, im suspecting it doesnt have all the features... wouldnt want to conf a system first in virtual... before i would move over from windows... win pissing me off for years already... but cant get rid of it because of some software i have to use... but its giving me problems in development... Node / npm ecosystem specifically, weid glitches nad probs... wanna move over to linux anynways, because im not planning to use win11 (win11 might be just be greatest creator of new linux users....) i like the idea of nix.. becausee it reminds me of Node/npm+Docker , you can modularize ur config via home-manager / flakes or smt...
@StrangerOnTheWeb4 ай бұрын
NixOS has no future, at least not a good one
@oglothenerd4 ай бұрын
@@StrangerOnTheWeb It has a future. I just don't see that future being for the desktop. But for the server? Oh yes! I see a future!
@JaLikon656 ай бұрын
My brother in christ - this is EASILY the best intro to Nix I've ever found! Thank you so much for putting this together. You covered so much ground here, from clearly explaining the benefits of Nix, to the basics of the Nix language (which I've never seen any other Nix video go over), to productively using NixOS. I mean this is seriously just awesome man! Thank you so much for putting this together!
@YingjieWang2476 ай бұрын
Awesome! As a linux user, I have heard of NixOS and got interested in it since two months ago, I did install it in a virtual machine, but never really understood what's going on in it, so just put the virtual machine there. This video is so clear and makes me feel like I can play with it again!
@FedoraSilverblue3 ай бұрын
bro how to fully delete firefox and other basic packages?I use this distro but i dont know.And how i can install thorium browser appimage?
@rschmidtzalles2 ай бұрын
Guides that combine Theory + Practical are a bless for open sources. Great Job and thanks for sharing
@peterlance66824 ай бұрын
This is one of the most beginner friendly explanation on Nix i have seen so far. I can't thank You enough. Awesome and keep growing.
@luv2stack6 ай бұрын
I knew nothing of nix before this video. It looks evolutionary
@cl46556 ай бұрын
Always a surprise finding Creo enjoyers randomly on the internet
@Jarx2466 ай бұрын
represent
@animainmilol3 ай бұрын
WAIT, ITS CREO?
@abystrousАй бұрын
creo mentioned, instant subscribe
@JubijubАй бұрын
This is and by far the best intro material I have seen on how to get started with Nix. Well done ! The practical part of the video should be an official doc...it isn't sadly
6 ай бұрын
Great presentation. Kudos also for wayland vs X11 & hyprland.
@j1d7s6 ай бұрын
Thanks for the information-packed video! I tried out NixOS once but did not continue. I may not yet have felt the pain enough on my Arch based system to do the switch, but I am intrigued and may start soon trying it out on a spare laptop.
@skyguytoronto486918 күн бұрын
best nixos flakes + home manager install guide
@scar60736 ай бұрын
Thank you so much for this! Finding good nix resources is so hard
@TheMadSqu5 ай бұрын
This was pretty cool! I understood maybe half of what you said there but the way it was presented and explained was done very well! I am using Arch btw.
@adjbutler4 ай бұрын
just tape your eyes open and rewatch again and again until you become truly part of the nix cult! hahahaha
@starrwulfe5 ай бұрын
this was the guide I was looking for. Thank you so much-- I've downloaded the transcript and saved it as a doc on my system so I can reference it even.
@fsefso75876 ай бұрын
In 17:42 it should be --update instead of update, great vid btw :)
@Ampersand-xc9jp6 ай бұрын
You are absolutely right, I genuinely forgot about that 😅
@plbr26 ай бұрын
О, а вот и причина пересмотреть твой видос по NixOS)
@liesdamnlies33725 ай бұрын
This is very exciting from the perspective of someone already comfortable with Linux and actual sysadmins. I’m even more interested to see if this declarative method can be brought to a more beginner-friendly distro, or if some enterprising people will create a distro of NixOS that’s at least what endeavourOS is to Arch. I have to get a new laptop soon anyway, I might try NixOS, though imagine I would miss the Blackarch repos pretty quick. (Unless I can find all those tools in the nix repos…)
@cariyaputta6 ай бұрын
Looking forward to the Nix Drama video.
@maxreuv6 ай бұрын
Excellent intro, thank you!
@nocodenoblunder66724 ай бұрын
Really like the analogy at the start
@randomsearches3696 ай бұрын
You are the one, Thanks a lot!
@BettersonMcgee6 ай бұрын
very informative and interesting! Thank you!
@urriell_80693 ай бұрын
Let's hope for more films like this. Thanks for this one :))
@marvin93462 ай бұрын
+1 for nixvim tutorial
@kahnshaak19 күн бұрын
Nixvim video when?? This is too good!
@crackedoutofmymind-h8m6 ай бұрын
anime waifu at the side of a nix tutorial sign me up
@noisetide6 ай бұрын
the confiscation of the nix-chan meme made my day!
@scar60736 ай бұрын
She's cuter than windows-chan
@ice.songpola5 ай бұрын
I'm done with Windows-gaki. Nix-chan is my new waifu!
@tobzdaman6194 ай бұрын
Yep, this video is the ONE. Thank you so much! :D
@evo66706 ай бұрын
Great Video! Help me a lot. Want to see the vim video. 😂
@TheMadMagician875 ай бұрын
Great video mate, thank you!
@richardminasian9834 ай бұрын
Yes, I like to see the Nix Vim guide please.
@narconyx3 ай бұрын
Tysm for this, gonna try installing NixOS tmrw hoping it goes better than Arch did -_-
@alexvarnavsky37396 ай бұрын
Man what a great work 😅
@splits89992 ай бұрын
honestly nix seems really cool but the sddm theme i use wasnt on their repo also i feel like i dont need it and i like my system being chaotic but i also like the cleanliness of the single config file and declarative approach. its rly attractive but i think for now im sticking to arch, maybe one day ill feel the urge to distro hop though btw this was the best intro to nix
@squidiebah5 ай бұрын
Good video, I''m curious as to the use-case for this type of distro. Perhaps appliances, routers and security roles?
@TheMotorcycleBoy-pe2eg6 ай бұрын
Very good presentation
@eduardabramovich12165 ай бұрын
Man, please create more tutorials on flakes to learn the nix language, hopefully you can focus them on customizing the prompt/shell, neovim-nixvim, and many more stuff. You really explained like a Nixgod, but for newbies like me it's difficult to follow your pace. I will watch this video several times.
@eternalboy16665 ай бұрын
great video! Subbed
@e-v-o-l-v-e6 ай бұрын
this is an really good video
@yash11524 ай бұрын
timestamps (incomplete): == Start == 0:00 Intro == Theory of Nix pkg/conf-mgmt == 0:23 History & Origins 2:20 Nix's Solutions 2:25 Isolate Every Pkg 2:57 Deterministic Nature 3:37 Functional Nature 4:10 Immutability 4:25 Atomicity 4:54 Derivs in primitive lang 6:12 Nix-Pkg: Repo & Channels 6:38 Analogy: Prog-langs & Pac-mgmt 8:20 Extending to NixOS & conf-mgmt == Using NixOS: 1. Live Boot == 09:46 Practical Part: Intro 09:58 Getting the ISO 10:17 Partitioning, Mounting, Gen-Config == Nix Language == 10:39 Nix-l: Intro 10:48 Data Types 11:10 Variables let..in, with, inherit, @ 11:29 Functions == Using NixOS: 2. Finishing Installation == 11:58 Quick Configuration 12:20 nixos-install 12:33 disko Partitioning 14:15 Installing & Finding Packages 14:55 nixos-rebuild switch 15:08 reboot bootloader menu entries 15:30 no-rb subcmd: boot, test 15:44 ... 18:32 home-manager
@yash11524 ай бұрын
Old Coarse timestamps: 00:00 Intro 09:46 Practical Part of NixOS 18:32 Home Manager 20:01 Nix Flakes 24:49 Modularising config files
@yash11524 ай бұрын
9:46 practical part of distro
@yash11524 ай бұрын
20:01
@yash11524 ай бұрын
24:49 modularising config files
@johnr39366 ай бұрын
I would love a deeper dive into flakes. As a software dev they would be very necessary for all my random projects though after a few hours of research its hard to see how they fit into the system.
@nerdg26 ай бұрын
thank you!
@bobmcbob43994 ай бұрын
Thanks for drilling into this. Great metaphors to introduce pure functions and immutability. One concern that I have is at 9:30 We can see a boot selection screen that appears to be UEFI boot selection? Is it UEFI or is it GRUB. Because if, I make several OS snapshot pointers and each of these are entries into the UEFI boot menu - I worry about FlashRom wear levelling. How much punishment can a Bios Flash take before it fails and needs to be replaced on your motherboard?
@MechMK15 ай бұрын
Nix still feels like such a huge new thing to wrap my head around. Is there any place you can recommend to ask questions?
@Cypekeh3 ай бұрын
After I moved my config to ~/nix, can I remove the files in /etc/nixos?
@niksingh7106 ай бұрын
i need a nix vim guide but i also felt you kindda skipped or tried to compress the content to make it in short time span i would like to see this elaborated
@ludawig_5 ай бұрын
Thanks for your Guide. Is it possible to use a default.nix file instead of a bundle.nix file, so you can just import the folder name. e.g. imports = [ ./modules ./plugins ]? Should be possible, but I'm not 100% sure.
@yash11524 ай бұрын
9:46 practical part of distro
@yash11524 ай бұрын
14:10 "run 2 commands" well, u forgot the disko related command at 13:46
@aviatoFPV3 ай бұрын
@@yash1152 This is where I'm running into issues as well, at 14:00 after running sudo nixos-generate-config --root /mnt && nixos-install I get writing hardw.nix and conf.nix and then I get mktemp failed to create directory via template /mnt/tmp.xxxx: permission denied I seem to be able to get past it by making myself superuser first with su - This command also seems to generate a new configuration.nix would it be possible to use an already existing configuration.nix instead of generating a new one? Or is it always build first with generic and then do a nixos-switch with the updated config?
@edhyjoxenbyl14096 ай бұрын
The pacakge manager graph is slightly out of date, we are that 92000 packages :)
@adjbutler4 ай бұрын
we are over 100k now. so only 92000 :( on graph. the graph needs updating!!!!!
@edhyjoxenbyl14094 ай бұрын
@@adjbutler repology does not count the package number the same way as nixpkgs does. the channel json file as about 118k packages in it
@sharukhrahman79256 ай бұрын
Hi im new to linux and i want to (just learn) how to do a minimal install.. if possible can you make a video of that in the future?
@louisunruh2386Ай бұрын
nice one
@narpwa5 ай бұрын
thanks
@derkommentator33484 ай бұрын
If I use "unstable." (17:48) I receive an "undefined variable" error. Did I forget something? :/
@yash11524 ай бұрын
i dont run "nixos-rebuild switch" every time. i run "nixos-rebuild test", and the switch one i run only at last while finalizing the config after allll tweakings and testing of the options.
@AshliBlattgold3 ай бұрын
Ich finde Nix gut
@rimenahi3 ай бұрын
That's it. I switch.
@grzesjedrzejak3996 ай бұрын
Question to creator if video! Can you list me advantages that nix os has over debian? But, be real i dont need a reproducaple system and i use linux to work (hardware design and embedded). I am planning to use nix at arm, is it good idea?
@crackedoutofmymind-h8m6 ай бұрын
Debian is just shit man if not nixos might as well use arch but not debian no good support or community you gotta figure it out thru old arse forums + not that great of a package manager too
@Ampersand-xc9jp6 ай бұрын
If you want a really stable system where you control almost everything, then you'll like NixOS more than Debian. Also, if you are going to use multiple ARM devices, Nix's declarative approach ensures that your setup can be reproduced reliably across them. There are fewer resources specifically tailored to using Nix on ARM compared to x86. However, this gap is gradually narrowing as interest in ARM-based systems grows
@grzesjedrzejak3996 ай бұрын
@@Ampersand-xc9jp Thank you.
@chickenonaraft5086 ай бұрын
If this was around earlier, we wouldn’t have needed Docker
@hyquiemistheg.o.a.t16714 ай бұрын
Can you do a video with impermanence setup?
@JoshuaT902Ай бұрын
All we need is a useful wiki - instead of having everything organized in video form or forum posts.
@yash11524 ай бұрын
6:08 _"log2(32)"_ where did the "32" came from? * if hex, it should be 16 * if alphanumeric, it should be 36 (10 + 26)
@88farrel6 ай бұрын
based
@cat475 ай бұрын
funny how you blur out your email at 19:50, when anyone can just clone the repository in the description, run git log, and see your email on every commit
@Nerd2Ninja6 ай бұрын
Alright watched the video. It was okay I guess. I take things really slow though. Kinda wish there was a video series for flakes the same way there are video series to learn other programming languages. I know it sounds like "why?" like it should be too simple for that at first, but really go over every programming language edgecase. How do you install a node.js program with a flake, how do you install a golang package? I think the most basic flake tutorials only cover installing C programs right? and then it could progress from there into dream2nix or something after all those cases are covered.
@adjbutler4 ай бұрын
when it comes to programming developer environments I had to stop thinking about "installing" node or python or whatever globally and fully embrace nix-shells for programming in. It is the best way to work as a programmer anyway.... I work with about 15 different programming languages and it is really nice to have a nice clean shell for each version. just start with making a very simple shell.nix file that has node as a package and run nix-shell in the same directory to start.
@adjbutler4 ай бұрын
you don't have to use flakes for everything or at all to get started with nix. just start with configuration.nix and shell.nix I have been using nixos for about 18 months, become a package maintainer and a few other things, and I still do really use flakes as much as I want to.
@adjbutler4 ай бұрын
@Ampersand-xc9jp maybe a video on how to setup a basic shell.nix file for simple dev env>?>??? to help here>?
@ФеофанЭтополедолжнобытьзаполне16 күн бұрын
I've heard some transessses' kicked out creator of nixos. Is this true?
@originzz6 ай бұрын
We need an r/unixwaifus
@fabianoslack42696 ай бұрын
4:19 ok, i get the idea regarding to binaries. But what about config files. Maybe package 1.1.0 and 1.2.0 will receive instructions from a config file and this can create an struggle here, right? Lets say config file for 1.1.0 have a property while config file for 1.2.0 have same property and once these two different are executed , they crash due to common values touching each other on the system… Im new to nixos (found it few hours ago, so i dont know if my question is dumb or not). Let me know. Nice video and thank you!
@CrazyMineCuber6 ай бұрын
Configuration is normally treated completely separately from the binaries on NixOS. Configuration is instead treated through the NixOS module system, which compiles the /etc directory and creates symlinks from /etc to the configuration files in /nix/store. For configs in your home directory, NixOS by default does not manage your home directory. That is what home-manager is for. Normally, you do not have multiple versions of the same application installed. If you do, both versions are probably configured to read from the same config file, so they will just use that one. If you somehow manage to convince the NixOS module system to generate two versions of the same config file, you will get a compilation error and you have to fore chose which version to use.
@Ampersand-xc9jp6 ай бұрын
Yeah, basically, both packages read from the same config. If these configurations are incompatible between versions, it can lead to conflicts and crashes. But I personally haven't encountered crashes because of the different package versions