NixOS: How it works and how to install it!

  Рет қаралды 153,370

DorianDotSlash

DorianDotSlash

Күн бұрын

NixOS is a pretty amazing Linux distro that is wrapped around a very unique and powerful atomic package management system. It's pretty hard to explain but I hope this video helps to clear it up.
I also go through the installation and some basic usage and package management.
00:00 Start
00:42 How standard package managers work
02:06 Nix package management
04:06 How NixOS works
05:49 Installation
22:35 First boot
23:28 Adding and removing packages
30:35 Conclusion
Get NixOS here : www.nixos.org
One of my configuration files can be found here : github.com/Dorian-DS/NixOS-Co...
Patreon support : / doriandotslash
Music by MrGamer (@AndreasRohdin): / gamermachine

Пікірлер: 333
@TuDoorCinema
@TuDoorCinema 4 жыл бұрын
Your voice sounds like a really good text to speech software lol
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Perhaps that’s all I am 😆
@kato0507
@kato0507 4 жыл бұрын
This was really interesting to hear about. I didn't know one like this existed. Also, his voice is very soothing and relaxing to listen to. Anyone else here feel the same?
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you very much and I hope you try it out. Cheers!
@Bens963
@Bens963 3 жыл бұрын
I've been a Gentoo user for about 10 years and I was struggling to understand exactly what this distro is. Thanks for your video it's certainly intriguing
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Glad you enjoyed it!
@laughingvampire7555
@laughingvampire7555 10 ай бұрын
as a Gentoo user myself, and I started in 2003, NixOS is everything Gentoo (Arch) wants to be when it grows up.
@GuyPipili
@GuyPipili 4 жыл бұрын
This is the first time that KZbin recommended your video. Glad to run into it. I have used Arch, Desbien, Mac, and Windows 10 OS. I'm thinking of trying NixOS because of your video. Thank you.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Hopefully the video helps getting it up and running. Cheers!
@objectobject6172
@objectobject6172 3 жыл бұрын
For Bri'ish users: "en_GB.UTF-8" for default locale, "uk" for key map and "gb" for xserver layout
@actuallyganta6044
@actuallyganta6044 3 жыл бұрын
I just want to add to this, as I was struggling to remember the different locales, I stumbled across this, which might be useful for anyone not using the en_US locale. stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes#3191729
@Niko-te3wp
@Niko-te3wp 2 жыл бұрын
a bole of woer
@Skelterbane69
@Skelterbane69 11 ай бұрын
worchestershire sauce
@PabloAndresDealbera
@PabloAndresDealbera 4 жыл бұрын
Thanks for making this video, there aren't a lot covering NixOS so it's good to see some coverage about it!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Yeah I noticed that, which made my wanting to try it a little harder. Hopefully this helps more people see how it works and try it. Cheers!
@BigDaddyLinux
@BigDaddyLinux 4 жыл бұрын
Dorian, I missed your videos. They are packed with information and you present them so well. Thank you sir!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Hey Rocco! Thanks a lot brother. Hope all is well for you during this strange time :) Nice to see your show is still going strong!
@desktopmonologues
@desktopmonologues 4 жыл бұрын
This is true. Dorian is one of my favorite Linux presenters with a pleasant voice. Great content.
@m.k.6361
@m.k.6361 4 жыл бұрын
This is the best video about NixOS I’ve seen so far, thx for sharing your knowledge with us👍🏻 It,s a very interesting conzept/ distro and I hope you will create a lot more content about NixOS. Keep up the good work mate👌🏻
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you so much! There is more to come as I said in the video so stay tuned ;)
@MyurrDurr
@MyurrDurr 4 жыл бұрын
Ok This is the coolest idea for a distro I have seen! In a way, it reminds me of dotfiles for a tiling window manager, you can take those files and move them to a new system and it'll be just the same automatically but with this it's the whole system instead
@Doriandotslash
@Doriandotslash 4 жыл бұрын
It is definitely interesting, and very cool 😎
@-nepherim
@-nepherim 4 жыл бұрын
Excellent video, very informative. This looks like an awesome approach to a linux install, looking forward to other videos.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you. It’s very different indeed, and I definitely have more to share about how it works and how to use it.
@vincentm99
@vincentm99 4 жыл бұрын
wanted to change to nixos, you are a life savior
@Doriandotslash
@Doriandotslash 4 жыл бұрын
I hope it helps! Cheers
@4tee2
@4tee2 4 жыл бұрын
Success! Finally got around to actually installing and your video helped a lot because it is clear and informative. Thank you!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
That’s great to hear! I’m glad it helped out 😁
@darrenrichard998
@darrenrichard998 4 жыл бұрын
Looks interesting nice to see a distro do something different
@lisaknox6284
@lisaknox6284 2 жыл бұрын
I've used this video to install NixOS on 2 machines now, it's been really helpful. Thank you!
@Jordan-hz1wr
@Jordan-hz1wr Жыл бұрын
Finally a coherent introduction!
@9SMTM6
@9SMTM6 4 жыл бұрын
Yeah, was really curious when I first saw this distro, glad I can see someone else taking the plunge:)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Yes, it has been one that I was always interested in, but was a little concerned over how complicated it seemed. Turns out it wasn't that bad at all!
@soulest2081
@soulest2081 4 жыл бұрын
I tried this a few times years ago. You just convinced me to give the OS and package manager a try again.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Nice! :)
@davidak_de
@davidak_de 4 жыл бұрын
it has improved a lot in the last years
@soundsofsivaya9939
@soundsofsivaya9939 6 ай бұрын
Thanks Man for your great videos! Your videos about NixOS helped me finnaly install it! 😊 Your content is easy to understand for newbies, which is not often in Linux-related topics. Thank you very much for your content, you are a great Man! 👍
@GoodOwl0
@GoodOwl0 4 жыл бұрын
I was searching for a video like this last week. Thanks for making this
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Glad you found it :) Cheers!
@TheLazyJAK
@TheLazyJAK 3 жыл бұрын
Never even heard of this, and yes you're right it's very unique. Please do more videos on it.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
I did a 2nd video on it as well, and I have a 3rd one coming up in the future.
@kintustis
@kintustis 4 жыл бұрын
the basic concept of the PM seems stupidly simple, and I'm surprised it hasn't been done already or in more PMs; at least as an option.
@06kellyjac
@06kellyjac 3 жыл бұрын
It does seem simple but under the hood it's a fair bit more complicated. Eelco Dolstra created it as part of his PhD Thesis "The Purely Functional Software Deployment Model" and has other papers on the topic like "Secure sharing between untrusted users in a transparent/binary deployment model"
@kintustis
@kintustis 3 жыл бұрын
@@06kellyjac While this is complex, I'm sure, I don't see how it would be much more complex than logic techniques we already use. Certainly it would be more infantile and with more work ahead of it than apt, but significantly more complex from an engineering standpoint? Much more than our already-complex software? I would refuse to believe that.
@freddyboy84
@freddyboy84 3 жыл бұрын
Best up to date video on NixOS. Look forward to more - just going to videos 2 and 3.
@lord12790
@lord12790 4 жыл бұрын
Hi Dorian! New audience here, love the video. Only video I found online explaining NixOS, hope to see more videos related to NixOS.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you very much! There will be more so stay tuned :)
@busterbrown8830
@busterbrown8830 4 жыл бұрын
Me also. I spent about 2 weeks getting NIXOS installed and researching the config file, but having this video really explains how the config file works and what to change. Thank you and awaiting the next videos to go further into NIXOS.
@seanpaul7069
@seanpaul7069 Жыл бұрын
Great content and thanks for covering less popular distro. I feel this and Fedora Silver Blue are very interesting and uniq take.
@BatBatov666
@BatBatov666 10 ай бұрын
This is the best explanation I have seen so far, I like IT tutorials with animations
@davidak_de
@davidak_de 4 жыл бұрын
this is a great video about nixos that actually explains what it is about and how it works
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you 😁
@schranzuslongus1
@schranzuslongus1 2 жыл бұрын
This Video is so much more than i expected! Thx!
@eznix
@eznix 4 жыл бұрын
Great to see this video from you. You got me very interested. Glad to see you are back. Thank you. Be well. :-)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks eznix. Give it a try! Great hearing from you again, take care!
@greob
@greob 4 жыл бұрын
NixOS and Gobo Linux are two very interesting distributions indeed.
@reyandotco
@reyandotco 4 жыл бұрын
@@nirgunawish true, snaps and flatpaks are becoming far too commonplace for my liking
@user-cr3pj2nr4e
@user-cr3pj2nr4e 4 жыл бұрын
@@nirgunawish it's not rtfm
@gorudonu
@gorudonu 3 жыл бұрын
@@nirgunawish which is a good thing
@pacc0698
@pacc0698 3 жыл бұрын
@@nirgunawish snaps and flatpaks are a good idea with bad implementations
@pacc0698
@pacc0698 3 жыл бұрын
@@nirgunawish what the hell makes you hate NixOS so much like I swear you've made no real reason as to why its bad. It's actually useful instead of your channieOS and used by the government and several corporations
@gilesgander155
@gilesgander155 4 жыл бұрын
Excellent as usual, going to try this distro
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you! It’s a great one to try. Good luck!
@Doryopaint
@Doryopaint 4 жыл бұрын
NixOS: exists Dorian: *I awake*
@HentaiNat
@HentaiNat 3 жыл бұрын
I thought your pfp was usb flasher in pop os at first.
@zed5551
@zed5551 2 жыл бұрын
Thanks for the excellent tutorial and preview of NixOS
@HealyHQ
@HealyHQ 2 жыл бұрын
This was an excellent explanation of NixOS, good job!
@doctorsocrates4413
@doctorsocrates4413 Жыл бұрын
Superb concise and intelligent video tutorial..Thank you.!
@davidwayne9982
@davidwayne9982 2 жыл бұрын
WOW-- EXCELLENT VIDEO.. you teach in a simple, smooth manner that is so easy to catch- without a lot of useless jabber or repetiviness... THANKS... I believe I may try this- WONDERFUL VIDEO.
@Doriandotslash
@Doriandotslash 2 жыл бұрын
Thank you very much 👍
@some666now9
@some666now9 3 жыл бұрын
fantastic installation process:)
@johanb.7869
@johanb.7869 4 жыл бұрын
Long time not seen. Wellcome back;)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks Johan! Nice to hear from you :)
@johanb.7869
@johanb.7869 4 жыл бұрын
@@Doriandotslash Wife and child okay?
@pctlc
@pctlc 4 жыл бұрын
Hey Dorian thanks for the video! very interesting distro!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Hey Colin! Thank you very much! Hope you give it a whirl and see how easy it is once it's all set up :)
@mrecks7782
@mrecks7782 4 жыл бұрын
Very interesting distro, and a very good walk throug.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks!
@MattBaker1965
@MattBaker1965 Жыл бұрын
Great intro ! Many thanks :)
@diegonayalazo
@diegonayalazo 2 жыл бұрын
Thanks for the video!
@s.sandeep
@s.sandeep Жыл бұрын
Great Intro to NixOS!
@iverbrnstad791
@iverbrnstad791 4 жыл бұрын
This video is fantastic, love that you answer a lot of these questions and insecurities that we newbies might have. I think this might be what I needed to take the leap and try dual booting nixos over summer break.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you very much! I do indeed try to make my videos with enough information for both new and veteran Linux users to try out new things, so thanks for the comment and good luck on the dual booting!
@Connor3G
@Connor3G 3 жыл бұрын
Very interesting video. I'll likely try NixOS in the future.
@i.8530
@i.8530 4 жыл бұрын
Cool vid! Been using nixos for about half a year now, very nice to see stuff explained in an easy way for beginners. One thing to note about formatting is that you can do the following: ``` boot.loader = { grub = { enable = true; device = "..."; }; }; ``` Thats just a quick example of course, but looks a bit prettier :)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks! Yes I do like that the code can be one-liners or broken up into easier to read lines.
@madsouris
@madsouris 4 жыл бұрын
great tutorial, looking to try on my own
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you! Hopefully this helps you get started :)
@jalo4242
@jalo4242 3 жыл бұрын
Do you plan on doing a video about using the Nix package manager on other Linux systems? I’d really be interested in seeing more about this!
@Doriandotslash
@Doriandotslash 3 жыл бұрын
I've played with it a bit on a Debian VM, but strange things happened and I couldn't get it working right so I deleted the VM. I will give it another go on day.
@Appalling68
@Appalling68 4 жыл бұрын
Totally interesting video. Thank you!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Glad you enjoyed it!
@patrickprucha5522
@patrickprucha5522 3 жыл бұрын
excellent video. looking forward to your future videos on nixos/nix-env. This is a very cool distribution with regards to saving configurations. Im about to partition my drive to include 2 distros, 1st is the main working one, and the other is a backup. so each distro has to have basically similar service configuration. Now with Nix0S or nix-env, I don 't need to have a backup OS installed. I just need NixOS, tailor some configurations, such as programming, videomaking, playing around, etc, and switch from one to the other. I may tinker with this option further.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Yes, as long as you save your configuration, you can easily clone it to another machine. And you can go one step further by also saving all your dotfiles so that your desktop and application settings are also copied over.
@Tala2n
@Tala2n 2 жыл бұрын
This is a brillant distro design !
@LS-cb7lg
@LS-cb7lg 3 жыл бұрын
great video! helped a lot :)
@nelsono4315
@nelsono4315 Жыл бұрын
wow, amazing video!! I just started getting into NixOS and this video is perfect. Thank you for doing this!
@Doriandotslash
@Doriandotslash Жыл бұрын
Glad you enjoyed it!
@aaronryder4008
@aaronryder4008 3 жыл бұрын
Im new to this channel and you did a phenomenal job explaining nix under 5 minutes. Thank you!
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Glad it was helpful!
@reisen1553
@reisen1553 4 жыл бұрын
btw, you can set packages per user with the option "users.users..packages". That way, you don't have to use the imperative method (nix-env) that can sometimes be problematic and the packages will be updated when you update your configuration.nix. It's the declarative approach.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks for the info!
@galerinha
@galerinha 3 жыл бұрын
I'm confortable with installing arch, this is like a piece of cake and wow it's so easy and also so powerfull! I can upload to the cloud just a bunch of config files and have the recipe to rebuild my entire system if something goes crazy enough to the point I can't even boot into the system. Or if I want to install it on another machine/disk is super easy to reinstall everything It's amazing.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
It is great, and yes it's super easy to replicate your setup.
@thatonepersonwhoeatscheese7348
@thatonepersonwhoeatscheese7348 3 жыл бұрын
my arch os broke today and couldnt figure out how to fix it. i was going to just reinstall it but then i saw this video and nixos looks like exactly how i like so i think ill go with that instead
@IsraelRuizGodot
@IsraelRuizGodot 3 жыл бұрын
Your voice sounds like a very big comb. Its really cool to listen to. If you get a noise remover for the static it would be perfect!
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Haha thanks :) Yes this was when my microphone died and I ended up having to use a headset for a couple of videos. I did end up getting a new one.
@bew
@bew 4 жыл бұрын
When you talk about ways to install new packages at 23:32, you make it look like the configuration file and the Nix package manager are 2 different things that don't interact. But that's wrong: In NixOS, the Nix package manager is everywhere and the whole system configuration is actually built by the Nix package manager, and a system generation is a Nix environment, the same kind of environment that is made available for user-specific package installation (with one or more environment (or profiles) per users actually)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
That wasn't my intention to make them seem like separate programs. I'm just pointing out that there is a difference between manually installing with nix-env for user packages and using the configuration file for system-wide changes. I suppose I could have made it more clear, but this is meant to just get you going with a running system :)
@shorthornstudios
@shorthornstudios 4 жыл бұрын
The video seems really good as far (from a semi-linux user). I honestly felt like the descriptions were good. Hope you're ok during the pandemic.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks man! Yes it’s all good but I’m hoping to be getting ready to go home in a few week. Nice to hear from you again
@shorthornstudios
@shorthornstudios 4 жыл бұрын
@@Doriandotslash Have a safe journey and its nice speaking to you too :)
@nivas2838
@nivas2838 3 жыл бұрын
Gonna try it out when my Manjaro eventually breaks (first time using Linux full time, I've been tweaking things every day, so it's a matter of time for me to screw something up lol). Thanks for the amazing content!
@johnlewis7736
@johnlewis7736 3 жыл бұрын
Great video! Thanks!
@reisen1553
@reisen1553 4 жыл бұрын
Excellent video, definitely the best I've seen explaining NixOS. Looking forward to the next about dual-boot and UEFI.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you!
@lorrewatkins5925
@lorrewatkins5925 4 жыл бұрын
Thanks Man so much for these great vid's ! Iv'e only been using Linux on and of two three years, my main OS is Win10 mainly because I'm a fps gamer, however I use Netrunner and Voyager Linux on my laptops. I'm not a power-user when it comes to Linux, I still doing my best and learning, so I really appreciate these great, well explained Linux tutorials like yours. So thanks dude again and keep up the good vid's !
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks!
@strangledpuppy5844
@strangledpuppy5844 4 жыл бұрын
Keep upthe work, lovin it
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks, will do!
@Ismael-iw4tm
@Ismael-iw4tm 3 жыл бұрын
Now that’s news .... 👏🏾😎🇺🇸👏🏾 great demonstration. The preparation is appreciated.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Thanks! Yeah this video took some extra work to explain things 😊
@JFV00
@JFV00 Жыл бұрын
I need to see the Nix specific video :)
@premier69
@premier69 4 жыл бұрын
Thank You!
@ejon
@ejon 4 жыл бұрын
The Nix way is the future
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
This is just intended as deeper insight into the kind of content I am looking for as a single insignificant subscriber, and the issues that seem overlooked in YT Linux content: 1. UEFI install w/secure boot that saves old keys, creates compound keys, and works with custom kernels. 2. A DIY distro w/running updates that just works. No special quirks nonsense. No required reading for an install option of a random dependency of a dependency. I don't always have time to read some dev's magnum opus on x86 addressing evolution changes from 2004. The default option should always be the most likely to work. 3. No bloat ( -kde- ) 4. Doesn't hassle me bc I need to run MPLabX or Quartus Prime binary blobs for microcontroller/fpga dev work 5. Makes it easy to totally sandbox firefox, the googlemonster, and facesuck. -Jake
@Doriandotslash
@Doriandotslash 4 жыл бұрын
I just disabled secure boot because in my opinion, it’s not needed outside of Windows. You should check out Fedora Silverblue if you want a distro that just works. It’s a little similar to NixOS in the way that it does atomic upgrades. It’s also a immutable OS, the whole thing is read-only except a few things like your home folder and configs. All applications are Flatpaks, so pretty much everything is sandboxed. Check my channel, I did 2 videos on Fedora Silverblue, it might interest you. If you really want to go to extremes with sand boxing within VM’s on a Hypervisor, check out Qubes OS. I also run it as well, but it’s highly demanding on your system.
@UpcycleElectronics
@UpcycleElectronics 4 жыл бұрын
@@Doriandotslash Thanks, I'll definitely check those out. I left plenty of room under my Gentoo install in order to add another distro on the drive. I was just debating trying Nix, but will check out Silverblue and Qubes too. What would you put on a Libreboot flashed old Core2Duo Lenovo? It's a tablet, so I've got to figure out the touch screen thing. I'm also seriously debating a hardware project to add a USB3382 PCIe to USB 3.0 bridge chip. It's well documented, and has Linux kernel drivers. I am trying gentoo on the newer machine to get an idea of what to do with the Leno. I did the full Sakaki EFI Tutorial from stage 1 with custom kernel and all, but having trouble with UEFI stuff presently. (It's due to the poor OEM firmware. I can remove the w10 drive from the machine, but it's still the only 'secure boot' option listed. It even names the Toshiba HDD in UEFI with it removed.) ... I am thinking about trying to build an entire setup for the Leno-Libre from source starting with GCC for the learning experience. I assume that leaves me with Gentoo as the only well documented option?
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Not sure what I’d use on a tablet since I’ve never used Linux on one. You might want to do a quick google to make sure you pick a distro that supports the hardware well, especially the touchscreen obviously.
@unLinuxeroMas
@unLinuxeroMas 2 жыл бұрын
good video my man
@normanpedersen5454
@normanpedersen5454 4 жыл бұрын
This is excellent! I may have to give NixOS a go!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks! It works great in a VM by the way ;)
@normanpedersen5454
@normanpedersen5454 4 жыл бұрын
@@Doriandotslash Yeah - crafting the config in a VM, then using that for your 'actual' install is really cool!
@twb0109
@twb0109 3 жыл бұрын
For the users you can do: users.users = { jane = { isNormalUser = true; extraGroups = [ "wheel" ]; }; joe = { isNormalUser = true; }; }; Great video btw, not much NixOS content out there
@Doriandotslash
@Doriandotslash 3 жыл бұрын
That's a good point. If you regularly have multiple users, this is the way to do it.
@IAMSolaara
@IAMSolaara 4 жыл бұрын
can't wait for part 2
@Doriandotslash
@Doriandotslash 4 жыл бұрын
It’s already out 😁 Check my channel!
@nssSmooge
@nssSmooge 3 жыл бұрын
Amazing video. Thank you for making it, I was thinking of nix os as its set it once and it works forever but the learning curve seems steep. I found someone elses dotfiles and file structure for nix os which I intended to use/inpire from and later cut things out of it I dont need to make it to suit me. This will help. Btw its the Hlissner nixos dotfiles.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
It's not that bad once you get it going and have a decent config file to work from. Just make sure to save a copy of it somewhere!
@c8__
@c8__ 4 жыл бұрын
What a distro && What a video !!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thank you :)
@danielho5635
@danielho5635 3 жыл бұрын
Thx for your informative video. I've been using Linux for about 10 yrs now and am sick and tired of reinstalling Windows every few years and Linux at seemingly random intervals. I tried Fedora Silverblue but was sick and tired of the slow boot-up times & shut-down times and slow rebuild configuration times. NixOS seems to be the nexus of stability & configurability. I took a cursory tour of NixOS, but now I see that there is definitely a steep learning curve.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
It can be a steep learning curve, but once you have a configuration made up how you like it, you can just back it up somewhere and reuse it if you ever have to reinstall it, and then your system will be back how you want it.
@layer8371
@layer8371 4 жыл бұрын
Nice Video thanks, trhis is what iam looking for :>
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Glad I could help
@RichardiOS275
@RichardiOS275 4 жыл бұрын
This is very interesting Tho I never experienced any package corrupted from power loss and such, this could save tons of hassle from it especially for the people who doesn't have a UPS
@ArianvanPutten
@ArianvanPutten 4 жыл бұрын
It's also nice that you can rollback after human error. E.g. I have my NixOS machines set up to roll back automatically if they don't report healthy in my cluster. I once rolled out a wrong firewall rule and got locked out. And then 5 minutes later everything's rolled back which is pure magic! Distros like Fedora CoreOS do something similar
@Atemu12
@Atemu12 4 жыл бұрын
@@ArianvanPutten Ooh that sounds interesting? Got any links?
@speedyfox9080
@speedyfox9080 Жыл бұрын
I am a gentoo user. Really love it, but my thinkpad x200 isn't the machine that loves compiling. I have tried NIXOS, and really loved it!
@shubhampawar7921
@shubhampawar7921 3 жыл бұрын
What softwares did you use for editing this video and having this(1:40) animations as well
@colemickens
@colemickens 4 жыл бұрын
As a long-ish time user of NixOS, I am happy to see it being covered more lately. This video seems full of great information and is a great introduction to Nix(OS). I'm excited and subscribing for more! If you want to take things further, Home-Manager is set of Nix expressions that, when paired with nixpkgs, allows you to write Nix to configure user-space apps (sway, i3status-rust, mpv, termite, alacritty, zsh, bash, etc), even beyond what the NixOS modules support. If you want or need help with it or anything else NixOS-y, freenode's #nixos/#nixos-chat are awesome, or I'd be happy to help, especially if it means more good Nix content. Thank you!
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks! I've already been looking into home-manager and it looks like something I'll definitely be trying. Cheers!
@DaraulHarris
@DaraulHarris 4 жыл бұрын
Can't wait to see the dual boot video. Can you cover installing .deb files on nixos?
@Doriandotslash
@Doriandotslash 4 жыл бұрын
I did see some things about installing deb files but it's not that simple and needs a bit of work to make it happen. But it's doable.
@weirdblackcat
@weirdblackcat 4 жыл бұрын
You can't really install deb files on NixOS. You can use a deb file as a _source_ for a Nix package, but you still have to shuffle the files around a bit. That said, you shouldn't need to install deb files on NixOS - it has the second most populated repository, only behind Arch Linux.
@dayindalife1885
@dayindalife1885 3 жыл бұрын
Looking at trying this myself the packet manager just seems so awesome to me... but I usually mount / and /home swap and /boot/efi partitions..... can you do this with this one.. or do you need to just burn the entire drive as it is all "different" ?
@brandonlewis2599
@brandonlewis2599 3 жыл бұрын
@28:26, the `pkgs` could probably be dropped, i.e. just `xfce.xfce4`. The `with` expression binds all the elements of `pkgs` in the scope of its body. In any case, the reason it's `nixos` in one place and `pkgs` in another is because the system passes in the entire attribute list with that name inside your configuration.nix. But I agree, it's super annoying.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Yes I learned that after making the video thanks to comments such as yours. Cheers!
@prokrastinator3122
@prokrastinator3122 3 жыл бұрын
great! thanks a lot
@Doriandotslash
@Doriandotslash 3 жыл бұрын
You are welcome!
@capability-snob
@capability-snob 4 жыл бұрын
Very cool to see a walk through for the system customisation- i've only used Nix on existing installs but that looks very flexible. The motivation was a bit muddled, though - existing package managers know how to do atomic updates to single files, what they struggle with is new packages with conflicting dependencies. With Nix, individual packages should just work, and if packages don't work together correctly it's due to a conflict directly specified in your environment, a problem which is tractable. Anyway, just a nit. Hope you can mv -T ~dorian soon.
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Yes I think if it doesn't work in Nix, then the package wasn't configured properly to begin with. But I haven't run into that so far. Thanks!
@jeremyjohansson3445
@jeremyjohansson3445 3 жыл бұрын
Is there a way to add the Xfce config you made to the configuration.nix so that you don't have to customize the desktop again everytime?
@Doriandotslash
@Doriandotslash 3 жыл бұрын
I'm not sure if you can go into that much detail with the .nix files, but you could backup and restore the Xfce conig files separately to keep your settings. But to be honest, it takes me about 3 minutes to reset Xfce the way I like it so it would't save that much time.
@shater1164
@shater1164 4 жыл бұрын
Welcome back and stay home, stay safe :)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks! You as well
@shater1164
@shater1164 4 жыл бұрын
@@Doriandotslash Pleasure matey, good to see you again.
@unclefester9113
@unclefester9113 5 ай бұрын
Good video. NixOS has a sharp learning curve. Some Distros put their name into the Boot menu and others only say Ubuntu… which makes it tough if a system has more than one Ubuntu system?
@AtomToast
@AtomToast 4 жыл бұрын
Very nice introduction. I wonder how nix os would handle a wm like dwm or an application launcher like dmenu or other suckless programs that are compiled from source
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Thanks! Seems like you can enable dwm in the config but I haven't tried it. I found an example here (just search the config for 'dwm') github.com/Thomashrb/.nixos/blob/master/configuration.nix
@AtomToast
@AtomToast 4 жыл бұрын
The important part seems to be towards the very bottom where he replaces st and (commented out) dwm with patched variants. So there seems to be some kind of support built in but this honestly seems very limiting. Maybe a way to use a properly configured suckless program would be to save a diff of your entire build against the vanilla version and upload that somewhere as a patch. That still sounds very cumbersome to work with though. Maybe nixos is just not made for working with suckless software
@davidak_de
@davidak_de 4 жыл бұрын
There is an option for dwm: services.xserver.windowManager.dwm.enable = true; but i don't know if it works and how to configure it. dmenu is also packaged, so it should work somehow if you don't figure it out yourself, you can ask on IRC or in the forum i have used i3 on nixos in the past and i know many in the community use a wm
@bew
@bew 4 жыл бұрын
Note: When opening the manual at 10:10 you mention we need access to the internet, but the manual is available offline! No need for internet for that. :) (installing the system will still require an internet connection though)
@Doriandotslash
@Doriandotslash 4 жыл бұрын
Yes I mentioned earlier on that the manual is on the ISO and the reason for being online is indeed to download packages during the install portion.
@northof-62
@northof-62 3 жыл бұрын
A few hick-ups I had were: Gparted changed the label of the boot partition to BOOT (CAPS) so I had to mount /mnt/disk/by-label/BOOT /mnt/boot . Dual-booting Windows 10 was a bit fiddly. I had to erase my Windows restore partition because 4 primary partitions is the maximum and I didn't want any extended/logical partitions. Also skipped on swap partitions. Then I had to manually add Windows 10 to grub 2, because the probe didn't find it. Luckily I found examples on the forums and pasted a few extra lines into configuration.nix that fixed it. I also had problems getting wifi working after reboot, althoug I had wicd enabled. I found there was a setting in wicd under Preferences/External Programs/DHCP Client for Automatic. I set this to dhclient instead to make my wifi not shut down immediately after connecting. Thanks for your tips on this weird Linux variant.
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Thanks for the comment! Seems like you had quite the runaround with this, but it also sounds like you were able to sort it all out. Great job!
@LS-cb7lg
@LS-cb7lg 3 жыл бұрын
is there a way to speed up searching for packages?
@gamerking64
@gamerking64 2 жыл бұрын
So every time i want to install a new package i need to add it to config and rebuild?
@Doriandotslash
@Doriandotslash 2 жыл бұрын
No, you can do it that way or use nix-env
@joesalyers
@joesalyers 3 жыл бұрын
The Nix Package manager sounds a lot like the original NextPorts/DarwinPorts, which was on NextStep then PowerPC Macs and is now called MacPorts. But when Apple moved to Intel Macports became more like pacman and the NetBSD package manager (pkgsrc). Then along came Homebrew for Mac & Linux and MacPorts became the unfashionable package manager for Apple computers. I think I'll try NixOS it looks very interesting 🤔 🧐 🤨 !
@christhackrey9516
@christhackrey9516 Жыл бұрын
Using Calamari on Arch for example, can't we reasonably expect an equivalent install helper to manage all of the system files flawlessly just the same? As long as the user's config was symlinked and env is init correctly just using the Nix package manager alone? I'm not seeing what NixOS brings to the table besides expanding the Nix paradigm into everything at system level. Doesn't any solid, tested pre-install of another distro already have all that covered? I guess there is value at scale in knowing a clone is 100% likely to act the same vs 99.98%..
@patrycjadargacz4909
@patrycjadargacz4909 3 жыл бұрын
I still get this error when i run the install command syntax error unexpected ID expecting’.’ or ‘=‘ at /mnt/etc/nixos/configuration.nix:58:11 and then it says (use ‘-show-trace to show detailed location information) and i have tried editing everything relating to location in the config and i still get this error
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Well it tells you where the error is. What's in that configuration.nix file on line 58?
@jonringer117
@jonringer117 4 жыл бұрын
If you're looking for more content on NixOS, you can look at Burke Libby's videos located kzbin.info/door/SW5DqTyfOI9sUvnFoCjBlQfeatured and I also have a few located kzbin.info/door/-cY3DcYladGdFQWIKL90SQ obviously not as nicely edited as Dorian
@GP-MB-Baden-WurttembergDeutsch
@GP-MB-Baden-WurttembergDeutsch 11 ай бұрын
Hi I use Fedora 20 years ago, from today I use Microsoft windows. I use apple , Linux and the famous AMIGA OS. I have a question for I like use NixOS on 1tb sd card. I'm like saying beginner, is good idea to install NIXOS or do you for beginner tutorials how to install NIXOS ....... You are great teacher😊😉😃
@gorudonu
@gorudonu 3 жыл бұрын
Great introduction! Which over do you like more? Nix or fedora silverblue?
@Doriandotslash
@Doriandotslash 3 жыл бұрын
Thanks! Oh that’s a hard one... I like Nix because it uses “regular” packages, but I like Silverblue because it uses Flatpaks, which I’ve grown fond of. Silverblue does have the advantage that it works quite well with my Nvidia dual graphics setup...
NixOS - Sometimes Different is Brilliant
41:20
OldTechBloke
Рет қаралды 40 М.
NixOS - How the store and packages work
18:50
DorianDotSlash
Рет қаралды 14 М.
ВЫКИНУЛА МОЙ АЙФОН?? #shorts
00:33
Паша Осадчий
Рет қаралды 1,8 МЛН
I was WRONG! This is the BEST Package Manager.
10:25
Chris Titus Tech
Рет қаралды 133 М.
You Should Use Flakes Right Away in NixOS!
26:09
LibrePhoenix
Рет қаралды 50 М.
NixOS Is A Fascinating Linux Distribution
34:51
DistroTube
Рет қаралды 152 М.
Why I Switched from Arch to Debian
10:16
DorianDotSlash
Рет қаралды 193 М.
What are immutable distros, and are they the future of Linux?
15:23
The Linux Experiment
Рет қаралды 99 М.
NixOS Has One BIG Problem
17:48
The Linux Cast
Рет қаралды 59 М.
12 Alternative Operating Systems You Can Use Today
13:53
Dan Wood
Рет қаралды 1,1 МЛН
The 12 Linux Apps Everyone Should Know About
21:20
DistroTube
Рет қаралды 446 М.
NIX OS: the BEST package manager on the MOST SOLID Linux distribution
17:08
The Linux Experiment
Рет қаралды 300 М.
How I Install Arch Linux (the hard way).
21:44
Dreams of Autonomy
Рет қаралды 101 М.
Интереснее чем Apple Store - шоурум BigGeek
0:42
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 13 МЛН
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 927 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,5 МЛН
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14
МОЩНЕЕ ТВОЕГО ПК - iPad Pro M4 (feat. Brickspacer)
28:01
ЗЕ МАККЕРС
Рет қаралды 67 М.