Тёмный

Full NixOS Guide: Everything You Need to Know in One Place! 

Ampersand
Подписаться 2,9 тыс.
Просмотров 65 тыс.
50% 1

🚀 My Practical Neovim Course: ampersand.onli...
My Config: github.com/And...
Download NixOS: nixos.org/down...
Nixpkgs search: search.nixos.o...
Disko templates: github.com/nix...
NixOS Manual: nixos.org/manu...
Nix Reference Manual: nixos.org/manu...
Nix pills: nixos.org/guid...
Home manager option search: home-manager-o...
Zero to Nix: zero-to-nix.com/
PhD Thesis: edolstra.githu...
Commands for installin home-manager:
$ nix-channel --add github.com/nix... home-manager
$ nix-channel --add github.com/nix... home-manager
Music:
• Creo - Flow
• LAKEY INSPIRED - Blue Boi
• LAKEY INSPIRED - The P...
• Trance Music for Racin...
• 3 A.M Chill Session 🌌 ...
• LEMMiNO - Cipher (BGM)

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 148   
@Ampersand-xc9jp
@Ampersand-xc9jp 13 дней назад
🚀 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
@oglothenerd
@oglothenerd 4 месяца назад
You and Vimjoyer are probably the future of NixOS actually having good tutorials and documentation.
@callyral
@callyral 4 месяца назад
There are also a lot of unofficial guides online, a lot of them in blogs.
@aleclowry7654
@aleclowry7654 3 месяца назад
I’m gonna bootstrap this comment to represent my other favorite nix RU-vidr youtube.com/@librephoenix?si=MzAUufEq6e3PEzEN
@Microphunktv-jb3kj
@Microphunktv-jb3kj 2 месяца назад
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...
@StrangerOnTheWeb
@StrangerOnTheWeb 2 месяца назад
NixOS has no future, at least not a good one
@oglothenerd
@oglothenerd 2 месяца назад
@@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!
@JaLikon65
@JaLikon65 4 месяца назад
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!
@crackedoutofmymind-h8m
@crackedoutofmymind-h8m 4 месяца назад
anime waifu at the side of a nix tutorial sign me up
@noisetide
@noisetide 4 месяца назад
the confiscation of the nix-chan meme made my day!
@scar6073
@scar6073 4 месяца назад
She's cuter than windows-chan
@ice.songpola
@ice.songpola 3 месяца назад
I'm done with Windows-gaki. Nix-chan is my new waifu!
@cl4655
@cl4655 4 месяца назад
Always a surprise finding Creo enjoyers randomly on the internet
@Jarx246
@Jarx246 4 месяца назад
represent
@animainmilol
@animainmilol Месяц назад
WAIT, ITS CREO?
@rschmidtzalles
@rschmidtzalles 27 дней назад
Guides that combine Theory + Practical are a bless for open sources. Great Job and thanks for sharing
4 месяца назад
Great presentation. Kudos also for wayland vs X11 & hyprland.
@peterlance6682
@peterlance6682 2 месяца назад
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.
@j1d7s
@j1d7s 4 месяца назад
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.
@cariyaputta
@cariyaputta 4 месяца назад
Looking forward to the Nix Drama video.
@marvin9346
@marvin9346 15 дней назад
+1 for nixvim tutorial
@TheMadSqu
@TheMadSqu 3 месяца назад
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.
@adjbutler
@adjbutler 2 месяца назад
just tape your eyes open and rewatch again and again until you become truly part of the nix cult! hahahaha
@liesdamnlies3372
@liesdamnlies3372 3 месяца назад
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…)
@scar6073
@scar6073 4 месяца назад
Thank you so much for this! Finding good nix resources is so hard
@plbr2
@plbr2 4 месяца назад
О, а вот и причина пересмотреть твой видос по NixOS)
@nocodenoblunder6672
@nocodenoblunder6672 2 месяца назад
Really like the analogy at the start
@fsefso7587
@fsefso7587 4 месяца назад
In 17:42 it should be --update instead of update, great vid btw :)
@Ampersand-xc9jp
@Ampersand-xc9jp 4 месяца назад
You are absolutely right, I genuinely forgot about that 😅
@starrwulfe
@starrwulfe 3 месяца назад
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.
@randomsearches369
@randomsearches369 4 месяца назад
You are the one, Thanks a lot!
@BettersonMcgee
@BettersonMcgee 4 месяца назад
very informative and interesting! Thank you!
@evo6670
@evo6670 4 месяца назад
Great Video! Help me a lot. Want to see the vim video. 😂
@urriell_8069
@urriell_8069 Месяц назад
Let's hope for more films like this. Thanks for this one :))
@squidiebah
@squidiebah 3 месяца назад
Good video, I''m curious as to the use-case for this type of distro. Perhaps appliances, routers and security roles?
@richardminasian983
@richardminasian983 2 месяца назад
Yes, I like to see the Nix Vim guide please.
@splits8999
@splits8999 21 день назад
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
@TheMadMagician87
@TheMadMagician87 3 месяца назад
Great video mate, thank you!
@narconyx
@narconyx Месяц назад
Tysm for this, gonna try installing NixOS tmrw hoping it goes better than Arch did -_-
@Cypekeh
@Cypekeh Месяц назад
After I moved my config to ~/nix, can I remove the files in /etc/nixos?
@TheMotorcycleBoy-pe2eg
@TheMotorcycleBoy-pe2eg 4 месяца назад
Very good presentation
@eduardabramovich1216
@eduardabramovich1216 3 месяца назад
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.
@yash1152
@yash1152 2 месяца назад
9:46 practical part of distro
@yash1152
@yash1152 2 месяца назад
14:10 "run 2 commands" well, u forgot the disko related command at 13:46
@aviatoFPV
@aviatoFPV Месяц назад
​@@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?
@eternalboy1666
@eternalboy1666 3 месяца назад
great video! Subbed
@johnr3936
@johnr3936 4 месяца назад
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.
@yash1152
@yash1152 2 месяца назад
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
@yash1152
@yash1152 2 месяца назад
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
@yash1152
@yash1152 2 месяца назад
9:46 practical part of distro
@yash1152
@yash1152 2 месяца назад
20:01
@yash1152
@yash1152 2 месяца назад
24:49 modularising config files
@niksingh710
@niksingh710 4 месяца назад
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
@originzz
@originzz 4 месяца назад
We need an r/unixwaifus
@nerdg2
@nerdg2 4 месяца назад
thank you!
@e-v-o-l-v-e
@e-v-o-l-v-e 4 месяца назад
this is an really good video
@yash1152
@yash1152 2 месяца назад
6:08 _"log2(32)"_ where did the "32" came from? * if hex, it should be 16 * if alphanumeric, it should be 36 (10 + 26)
@bobmcbob4399
@bobmcbob4399 2 месяца назад
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?
@derkommentator3348
@derkommentator3348 2 месяца назад
If I use "unstable." (17:48) I receive an "undefined variable" error. Did I forget something? :/
@MechMK1
@MechMK1 3 месяца назад
Nix still feels like such a huge new thing to wrap my head around. Is there any place you can recommend to ask questions?
@TheAmazingPlankton
@TheAmazingPlankton Месяц назад
Can i Switch from KDE Plasma to Hyprland? How simple is this?
@adjbutler
@adjbutler 2 месяца назад
NixOS!!! NixOS!!! NixOS!!! NixOS!!! NixOS!!! NixOS!!!
@yash1152
@yash1152 2 месяца назад
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.
@AshliBlattgold
@AshliBlattgold Месяц назад
Ich finde Nix gut
@Redyf
@Redyf 3 месяца назад
NixOS MENTIONED
@adjbutler
@adjbutler 2 месяца назад
lets gooooo!
@yash1152
@yash1152 2 месяца назад
💩💩 > @adjbutler: _"lets gooooo!"_
@ludawig_
@ludawig_ 3 месяца назад
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.
@narpwa
@narpwa 3 месяца назад
thanks
@sharukhrahman7925
@sharukhrahman7925 4 месяца назад
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?
@Dev-f8y
@Dev-f8y Месяц назад
hmm interesting I will stick with fedora 40 for now
@edhyjoxenbyl1409
@edhyjoxenbyl1409 4 месяца назад
The pacakge manager graph is slightly out of date, we are that 92000 packages :)
@adjbutler
@adjbutler 2 месяца назад
we are over 100k now. so only 92000 :( on graph. the graph needs updating!!!!!
@edhyjoxenbyl1409
@edhyjoxenbyl1409 2 месяца назад
@@adjbutler repology does not count the package number the same way as nixpkgs does. the channel json file as about 118k packages in it
@grzesjedrzejak399
@grzesjedrzejak399 4 месяца назад
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-h8m
@crackedoutofmymind-h8m 4 месяца назад
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-xc9jp
@Ampersand-xc9jp 4 месяца назад
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
@grzesjedrzejak399
@grzesjedrzejak399 4 месяца назад
@@Ampersand-xc9jp Thank you.
@chickenonaraft508
@chickenonaraft508 4 месяца назад
If this was around earlier, we wouldn’t have needed Docker
@cat47
@cat47 3 месяца назад
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
@wanmixc2968
@wanmixc2968 4 месяца назад
Need more tutorial ricing...
@areweevensomeoneoutthere
@areweevensomeoneoutthere 2 месяца назад
14:12 This doesn't work, you are generating the config with nixos-generate-config ...
@the_mong_
@the_mong_ 4 месяца назад
This is the video
@rwz
@rwz 4 месяца назад
This video could only get better with chapters!
@rimenahi
@rimenahi Месяц назад
That's it. I switch.
@2Kaleb
@2Kaleb 2 месяца назад
Dude have timestamp?
@CulturalCrime
@CulturalCrime 2 месяца назад
Thumbnail convinced me to move from Arch to Nix
@yash1152
@yash1152 2 месяца назад
14:10 _"run 2 commands"_ well, u forgot the disko related command at 13:46
@Rthabett
@Rthabett 4 месяца назад
U r config link is broken
@fabianoslack4269
@fabianoslack4269 4 месяца назад
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!
@CrazyMineCuber
@CrazyMineCuber 4 месяца назад
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-xc9jp
@Ampersand-xc9jp 4 месяца назад
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
@MaksimBorzik
@MaksimBorzik 4 месяца назад
Nvidia drivers breaks argument "if it doesn't work there it won't work anywhere")))
@Nerd2Ninja
@Nerd2Ninja 4 месяца назад
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.
@adjbutler
@adjbutler 2 месяца назад
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.
@adjbutler
@adjbutler 2 месяца назад
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.
@adjbutler
@adjbutler 2 месяца назад
@Ampersand-xc9jp maybe a video on how to setup a basic shell.nix file for simple dev env>?>??? to help here>?
@iblamefps
@iblamefps 4 месяца назад
I think it's almost time to divorce arch
@AlaaSaidAhmad
@AlaaSaidAhmad 4 месяца назад
Nice wallpaper how can I download it
@Nerd2Ninja
@Nerd2Ninja 4 месяца назад
Sorry, I'm gonna watch the whole video, but right now I want you to know, it would have been glorious if you talked like a VTuber the whole time lmao.
@Ampersand-xc9jp
@Ampersand-xc9jp 4 месяца назад
Noted
@КатяМухина-л2о
@КатяМухина-л2о 4 месяца назад
thank you for your hard work
@mangoherpson
@mangoherpson 3 месяца назад
12:38 lmao
@Edgar-pu1lc
@Edgar-pu1lc 4 месяца назад
Theme and icon name in neovim ?
@Ampersand-xc9jp
@Ampersand-xc9jp 4 месяца назад
Oxocarbon
@BlackTakGolD
@BlackTakGolD 4 месяца назад
Some of the description's links are not formatted correctly.
@Adiee5Priv
@Adiee5Priv 4 месяца назад
Yeah, i'm probably too lazy to bother, lol
@henryofskalitz2228
@henryofskalitz2228 2 месяца назад
I switched to nix because they don't follow CoCs like gnomes
@henryofskalitz2228
@henryofskalitz2228 Месяц назад
Disregard they just forced a trans only seat I'm done
@NeftisIsHere
@NeftisIsHere Месяц назад
snowflake
@teodordjuric6323
@teodordjuric6323 25 дней назад
What
@henryofskalitz2228
@henryofskalitz2228 25 дней назад
@@teodordjuric6323 they forced the creator to leave the put a seat on the board exclusively for trans people
@FodaseGoogreorio-h7v
@FodaseGoogreorio-h7v Месяц назад
Wait wait wait! Anime waifus is only for Arch Linux! And furys too! 😡😡😡😡😡😡
@DoYouSeeAmin
@DoYouSeeAmin 2 месяца назад
а де руский амперсанд
@zombizombi
@zombizombi Месяц назад
It's this kind of irrelevent weeb stuff that puts so many off Arch/Nix
@eli1882
@eli1882 4 месяца назад
I want to like your channel, but the anime girls are repulsive
@LukasSmith827
@LukasSmith827 4 месяца назад
nix creatures when I `pipreqs && pip install -r requirements.txt` (the project didn't support linux (I ain't learnin allat))
@greob
@greob 4 месяца назад
Nice walkthrough thanks for sharing
@StaffyDoo
@StaffyDoo 4 месяца назад
I learned so much from this video -- thanks my dude for taking the time to make it! Cheers from Argentina 🧉
@YingjieWang247
@YingjieWang247 4 месяца назад
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!
@FedoraSilverblue
@FedoraSilverblue Месяц назад
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?
@luv2stack
@luv2stack 4 месяца назад
I knew nothing of nix before this video. It looks evolutionary
@maxreuv
@maxreuv 4 месяца назад
Excellent intro, thank you!
@alexvarnavsky3739
@alexvarnavsky3739 4 месяца назад
Man what a great work 😅
@tobzdaman619
@tobzdaman619 2 месяца назад
Yep, this video is the ONE. Thank you so much! :D
@hyquiemistheg.o.a.t1671
@hyquiemistheg.o.a.t1671 2 месяца назад
Can you do a video with impermanence setup?
@88farrel
@88farrel 4 месяца назад
based
@lodyllog
@lodyllog 4 месяца назад
Переводил нейросеткой или у тебя реально такой чистый английский?
@lainmaxxing
@lainmaxxing 4 месяца назад
это сценарий называется...
@lainmaxxing
@lainmaxxing 4 месяца назад
а так, условного б1 хватает для такого
@lodyllog
@lodyllog 4 месяца назад
@@lainmaxxing произношение довольно чистое, совсем не на б1
@edhyjoxenbyl1409
@edhyjoxenbyl1409 4 месяца назад
do you have a discord?
@Ampersand-xc9jp
@Ampersand-xc9jp 4 месяца назад
Not yet, but I'll create a server it at some point
@fabianoslack4269
@fabianoslack4269 4 месяца назад
By the way, what is the best discord channel for nixos?
@kiaragrouwstra4250
@kiaragrouwstra4250 3 месяца назад
@@fabianoslack4269 they have a matrix server, check their website
@TheTastefulThickness
@TheTastefulThickness Месяц назад
Doesn't the flatpack already solve this problem introduced at the beginning of the video?
Далее
Homelab Setup Guide - Proxmox / TrueNAS / Docker Services
2:44:39
NixOS: Everything Everywhere All At Once
15:10
Просмотров 314 тыс.
Ultimate NixOS Guide | Flakes | Home-manager
15:30
Просмотров 156 тыс.
Nix explained from the ground up
23:39
Просмотров 31 тыс.
You Should Use Flakes Right Away in NixOS!
26:09
Просмотров 67 тыс.
Nix and NeoVim
13:38
Просмотров 141 тыс.
Getting Started with Nix
25:49
Просмотров 70 тыс.
Linus On LLMs For Coding
17:06
Просмотров 274 тыс.
This homelab setup is my favorite one yet.
21:30
Просмотров 284 тыс.
100+ Linux Things you Need to Know
12:23
Просмотров 1,1 млн