You Should Use Flakes Right Away in NixOS!

Поделиться
HTML-код
  • Опубликовано: 20 окт 2023
  • Join as a Channel Member:
    / @librephoenix
    Join Liberapay: liberapay.com/LibrePhoenix/do...
    Join Patreon: / librephoenix
    Hello everyone and welcome back to some more NixOS! This one took me a while to make! In this video, we're just going to be looking at some basic config and transitioning the system's configuration to using flakes, since flakes are really powerful.
    Please like and subscribe for more!
    Associated Blog Post: librephoenix.com/2023-10-21-i...
    The next episode, which is about home manager, is available here: • Manage Your Dotfiles w...
    Additionally, here's my NixOS playlist: • NixOS Config Guides fo...
    Links referenced:
    NixOS Iso: nixos.org/download#download-n...
    MyNixOS: mynixos.com/
    nixpkgs: github.com/NixOS/nixpkgs
    Links to my configuration if you're curious:
    GitLab: gitlab.com/librephoenix/nixos...
    GitHub: github.com/librephoenix/nixos...
    Codeberg: codeberg.org/librephoenix/nix...
    Wallpaper backgrounds were found on freepik.com.
  • НаукаНаука

Комментарии • 155

  • @librephoenix
    @librephoenix  7 месяцев назад +13

    Next video in the series is available here: ruclips.net/video/IiyBeR-Guqw/видео.html It's about home manager, which is a Nix tool for managing dotfiles in your $HOME.

    • @travislodes5378
      @travislodes5378 4 дня назад

      I started with a vm, but when I made it, it doesn't have a hardware configuration file.. any ideas on how I make that happen?

  • @jordanagarrison
    @jordanagarrison 7 месяцев назад +70

    I’ve been using NixOS for two years and have been avoiding flakes. This was such a clear explanation. I don’t know why I was avoiding flakes anymore. Thanks for putting this out there. This is great!

    • @librephoenix
      @librephoenix  7 месяцев назад +5

      I'm glad this helped you!

    • @Flackon
      @Flackon 7 месяцев назад +4

      For me, the fact they are still labeled as an experimental feature makes me think it’s not stable or mature enough yet

    • @CaseyHancocki3luefire
      @CaseyHancocki3luefire 4 месяца назад

      So true about the explanation of why to use flakes.

  • @user-ed4un3wz4c
    @user-ed4un3wz4c 3 месяца назад +17

    At 21:40, you should run "nix flake lock", this will create the flake.lock with user permissions. You may then run "nixos-rebuild switch --flake ."

  • @soymadip1
    @soymadip1 18 дней назад +1

    Across all the guidee I have come before lacked practical processes. But you are the first one to practically doing things.
    Thanks a lot for this

  • @MarcLacoursiere
    @MarcLacoursiere 3 месяца назад +11

    This is hands down the best flakes explanation I have ever seen!

    • @eygs493
      @eygs493 4 дня назад

      are you stupid

  • @arielmenezes8919
    @arielmenezes8919 7 месяцев назад +14

    Excellent video. Your videos are all very good, and with the improved audio quality it's even more enjoyable to watch than it was before.

  • @Sudoakado
    @Sudoakado 6 дней назад

    Very very cool mate thanks! Nicely articulated!

  • @forestcat512
    @forestcat512 6 месяцев назад +3

    What a good video, started out really new on nixos and your video helped me understanding what ive already created with the help of other tutorials but without understanding it. thx :)

  • @fortnitemaps201
    @fortnitemaps201 2 месяца назад

    Thank you! Most videos I watched were very fast and it was quite hard to keep up with the person talking. You really nicely explained everything and cleaned up stuff in my mind about how everything works. Thank you! ❤️

  • @abdullamasud4278
    @abdullamasud4278 6 месяцев назад

    Thank you for this

  • @seheyt
    @seheyt 2 месяца назад +1

    I especially appreciate the time taken to explain the different syntactical forms for some of the nix file items.

  • @alojzyleszcz1137
    @alojzyleszcz1137 7 месяцев назад +2

    Hi there! Thanks for the content. Exactly something I need. I've been planning to switch to NixOS for quite a while, but the more I read about it, the more lost I feel about the configuration file. Looks like one day I'll need to simply give it a shot and don't care about the consequences.
    Anyway, I'm going to prepare some crisps for the next episodes of your series. Looking forward to this.
    Thanks once again.

  • @2008regis
    @2008regis 4 месяца назад

    Thanks, man. I've been struggling with flakes for a while now and this tutorial helped me a lot. Thanks a lot

  • @Kermit2k
    @Kermit2k 3 месяца назад

    Clear, concise and to the point. You made flakes finally click for me. Thank you!

  • @KatlynTheFirst
    @KatlynTheFirst 4 месяца назад +1

    Thank you so much for this tutorial flakes finally make since now!

  • @m0r4ag
    @m0r4ag Месяц назад

    This is very very cool, i’ve been curious about NixOS but i’ve been feeling so comfortable with Arch that having something very different as Nix kinda scares me, but this video was very interesting and motivating

  • @Illumynatii
    @Illumynatii 6 месяцев назад

    Fantastic explanation. Keep em coming!

  • @richardminasian983
    @richardminasian983 7 месяцев назад

    Thank you, Very thorough and easy to follow. After watching several confusing and hard to follow other videos regarding this subject I was ready to give up on NixOs until i stumbled on your videos and gained new hope. Please make more.

    • @librephoenix
      @librephoenix  7 месяцев назад

      Glad it was helpful! Definitely more tutorials on their way, once I get around to making them :)

  • @RobFisherUK
    @RobFisherUK 7 месяцев назад

    Perfect timing. I'm about to do a NixOS install and have been figuring out flakes with nix develop for a while, but wasn't sure how to apply them to a whole NixOS install. This video has perfectly filled that gap in my knowledge. Thanks!

    • @librephoenix
      @librephoenix  7 месяцев назад +1

      Thanks! I'm glad you found it useful! :)

  • @forzaracer
    @forzaracer 3 месяца назад

    great explanation, thank you! please keep them coming!

  • @foxcirc
    @foxcirc 5 месяцев назад

    this was really useful and well explained ❤

  • @andrickposo7147
    @andrickposo7147 3 месяца назад

    Love the video! Great explanation, now I can finally use flakes without being confused.

  • @ThibautLamadon
    @ThibautLamadon 6 месяцев назад

    Fantastic video, straight to the point but also lots of content. Seems like a great place to start!

  • @LarsOksendal
    @LarsOksendal 5 месяцев назад

    Good work! Keep it up! 🎉

  • @Felipe-53
    @Felipe-53 4 месяца назад

    awesome video! thank you so much!

  • @RishabhSingh-fj2go
    @RishabhSingh-fj2go 2 месяца назад

    Thanks for making flakes simple loved the video.

  • @csrlgr6176
    @csrlgr6176 Месяц назад

    Super helpful, Thank you!.

  • @ThatNateGuy
    @ThatNateGuy Месяц назад

    This might sound strange, but I'm glad you kept in the missing semicolon error and correction in the video. It's a reminder to the less savvy like myself.

  • @MichaelWilliams-lr4mb
    @MichaelWilliams-lr4mb 7 месяцев назад

    Excellent video! I've been using flakes the past few weeks but I hadn't switched my nixos configuration.nix over to flakes. I might do that when I find time this week.
    Keep up the good work!

  • @Chris-jp6ll
    @Chris-jp6ll Месяц назад

    Finally an easy-to-digest intro for beginning the flakes journey!

  • @Arn0xD
    @Arn0xD 7 месяцев назад +9

    More Nix content please! Modularizing from scratch would be super useful.

    • @librephoenix
      @librephoenix  7 месяцев назад +3

      A NixOS video is next on my recording todo list! I'm hoping to get a home-manager video out this weekend, and then the next NixOS video will be all about modularity

    • @hammerheadcorvette4
      @hammerheadcorvette4 4 месяца назад

      I kind of felt tis is like Dockerfile with Podman. Pretty cool either way.

  • @christopherchalcraft1134
    @christopherchalcraft1134 4 месяца назад

    I have been using flakes for two years now but this was still very useful. I love the style of refactor with explanation

  • @CaseyHancocki3luefire
    @CaseyHancocki3luefire 4 месяца назад

    WOW. This helped me understand why to use flakes. And made it clear that a good starting point is a vm since all the important stuff is just a few config files. All you need to do is figure out what you want and need for a usable system and then install on real hardware with those few config files.

  • @mcnairymichael
    @mcnairymichael 3 месяца назад

    Thank you so much. Demystified flakes for me!

  • @diego898
    @diego898 6 месяцев назад

    This video did so much for me to actually //understand// what is going on inside a nix file

  • @mrp5675
    @mrp5675 7 месяцев назад

    Thank you! You made flakes much more approachable for me.

    • @librephoenix
      @librephoenix  7 месяцев назад

      Glad you found it helpful! :)

  • @alexobzor
    @alexobzor 3 месяца назад

    This helps a lot, thanks!

  • @chrisrobbo
    @chrisrobbo 3 месяца назад

    Really great content, fantastic teacher!

  • @borisoid
    @borisoid 7 месяцев назад +1

    Amazing! Your channel is the only good source of nix.. knowledge / understanding that I know

    • @librephoenix
      @librephoenix  7 месяцев назад

      Thanks! Glad you find the Nix content helpful!

  • @kitastro
    @kitastro 7 месяцев назад

    I like this guide cause you explain the basics and the advanced in order
    :)

    • @librephoenix
      @librephoenix  7 месяцев назад

      Thanks! I'm glad you found it useful!

  • @supernerd6983
    @supernerd6983 2 месяца назад

    In this video you casually mentioned passing through a directory from the host to the vm. I have been pulling my hair out for months trying to get this to work with KVMs on NixOS. Please do a tutorial on virtiofs or whatever you used to do it!

  • @michaelharmon5502
    @michaelharmon5502 2 месяца назад

    Thank you for the great explanation of how to set up a flake in Nix. As someone still very new to Nix, I’m still left wondering why. What do they do exactly? What value do you get in exchange for the added complexity?
    On another note (I’m an audio engineer), in future videos, please move closer to your microphone and maybe also add some sound absorption to your recording space.

  • @StefanoPompa
    @StefanoPompa 6 месяцев назад +1

    Great video, very clear. For me it would be published (together with the home-manager one) in the home page of nixos official website!

  • @sachinchaudhary1310
    @sachinchaudhary1310 2 месяца назад

    best video for flakes i every seen

  • @luv2stack
    @luv2stack 29 дней назад

    Very good video. Liked!

  • @kasergus2446
    @kasergus2446 27 дней назад

    Thank you very much for your guides! Btw, which browser are you using? It seems funny and vim like.

  • @wyfyj
    @wyfyj 4 месяца назад

    I am trying out nixos again. I had a pretty good running system on my Framework laptop. But then, the Fire Nation attacked and I couldn't figure out what was causing xorg/wayland to crash. I felt like I spent enough time on it and left Artix.
    I remember leaving NixOS like 6 months ago. I feel like I only spent enough time on it to get comfortable enough to explore flakes and home-manager. This video is very well done. Plus I also see you are an Emacs enjoyer. I am trying to make the move to Emacs over neovim.

  • @andherium
    @andherium 3 месяца назад +1

    Thanks man
    Also I've never seen a video where a person uses vim and emacs and nano 😂 let alone vim and emacs
    Also you sound like Luke Smith (Arch guy)

  • @nixentric
    @nixentric 5 месяцев назад

    Your explanation was awesome, man. I thought it was gonna be hard to understand, but you made it so easy. Thanks a lot.

  • @XxH0T5H0TxX
    @XxH0T5H0TxX 5 месяцев назад

    Amazing video, would suggest adding some sort of annotation on the fact that the nixosconfiguration needs to be the same as the hostname. Had to spend some time fixing it myself before getting to that part of the video :D

  • @oglothenerd
    @oglothenerd 5 месяцев назад +2

    Hello fellow small Linux RUclipsr!

  • @markwood-patrick4705
    @markwood-patrick4705 4 месяца назад

    Great video, what VM were you using?

  • @rafi_45
    @rafi_45 7 месяцев назад

    thank you so much for the explanation. this makes me understand how to use flakes. I am still using nix-channel to update my system. we need more nix content. and if you can please tell how do you config your desktop and emacs.

  • @XmagicBeastX
    @XmagicBeastX 7 месяцев назад +1

    Great video! Might want to put a link to your nix dot files in the links reference. A few ideas for some new videos: setting up doom emacs would be great (preferably not one that takes 71 seconds to start, as shown in your tutorial on flakes ;-) Perhaps another on setting up an nvim distro like lazyvim or astrovim, and a couple of more advanced videos going in-depth into creating one's own packages, as quite a few non-enterprise applications seem to be out-of-date (veracrypt), or plain missing nordvpn (I see a handful of people have been struggling to get this working for more than a year - so it's obviously not that trivial for people new to nixos!)
    Also really like the look of the channel, keep up the good work!

    • @librephoenix
      @librephoenix  7 месяцев назад

      Thanks so much! Definitely some great ideas! Yeah.. my Doom Emacs startup is quite bloated XD. I've actually never created a proper nvim setup so it would probably be really fun exploring how to set that up in nixos!

  • @heroslippy6666
    @heroslippy6666 2 месяца назад

    This was a wonderful explanation! Do you have any videos on dev shells?

    • @librephoenix
      @librephoenix  2 месяца назад +1

      I actually haven't made a video on that yet, but that's an excellent idea, I'll add it to my video todo board :)

  • @jujay51
    @jujay51 3 месяца назад

    I’m enjoying your videos! May I know what is that file explorer you are using in your vim? Thanks in advance!

    • @librephoenix
      @librephoenix  3 месяца назад

      Do you mean my emacs? I'm pretty sure the file explorer/switcher is just consult with find-file (or whatever Doom Emacs defaults to) and the side pane showing the symbols is lsp-treemacs-symbols. Not sure if there are vim equivalents, but I imagine thtere's probably something out there like them!

  • @anurag9385
    @anurag9385 7 месяцев назад +1

    Great tutorial

  • @ElliotWeishaar
    @ElliotWeishaar 6 месяцев назад

    Great video! I'm starting to test nixos as a daily driver and these video's are amazing! I still have some questions though. Once I have the flake set up, if I want to update my system do I modify `~/.dotfiles/configuration.nix` and then run `sudo nixos-rebuild switch --flake .` within the .dotfiles directory? I'm assuming updates are still done from within the configuration.nix file within the .dotfiles directory correct? Let me know if there is a different place to discuss. Thanks again for the great video series and keep them coming!

    • @librephoenix
      @librephoenix  6 месяцев назад

      That's what I do! You're absolutely correct! Passing the directory to `sudo nixos-rebuild switch --flake` will utilize the configuration.nix associated with that flake. Additionally, if you're not using a flake, any `sudo nixos-rebuild switch` will always use /etc/nixos/configuration.nix to rebuild unless you set the NIXOS_CONFIG env variable: `NIXOS_CONFIG=/path/to/configuration.nix sudo nixos-rebuild switch`

  • @jakubsokoowski5603
    @jakubsokoowski5603 2 месяца назад

    Very good presentation. Question: How did you visualize the structure of the flake in your Emacs like that?

    • @librephoenix
      @librephoenix  2 месяца назад +1

      It's lsp-mode with nix. I think this is the relevant config: github.com/librephoenix/nixos-config/blob/main/user/app/doom-emacs/doom.org#lsp The function to call is (lsp-treemacs-symbols). Also, I think you need a nix language server installed; the only one I could get to work was nil: mynixos.com/nixpkgs/package/nil

  • @wangfiox
    @wangfiox 5 месяцев назад +1

    讲的非常清楚

  • @RonVichar
    @RonVichar 3 месяца назад

    Thank You. The other flake tutorials, made me want to go back to not use flakes, and pushed me to unstable-channel.

  • @CarrotBoy9
    @CarrotBoy9 7 месяцев назад

    Awesome tutorials

  • @Grizzlywer
    @Grizzlywer 6 месяцев назад

    I really like your tutorial as I learned something, but don't you have to manually edit the version of your nix flakes pakages everytime to update it?

  • @mattiabonafini4026
    @mattiabonafini4026 7 месяцев назад

    Thanks for the very clear video! I'll just subscribed...please keep it going. As far as I know pipewire is installed natively on NixOs. Is there a way to switch to Jack/Qjackctl/Alsa and use NixOs for pro audio. Pipewire is not ready at the moment, for my liking.

    • @librephoenix
      @librephoenix  7 месяцев назад

      Thanks! In terms of removing pipewire, I think you just need services.pipewire.enable = false; in your configuration.nix. I don't know if this completely breaks audio on a pipewire-by-default system though. There's the NixOS wiki pages on audio too, which you may find helpful: nixos.wiki/wiki/Category:Audio

  • @mars_0008
    @mars_0008 7 месяцев назад

    This is Brilliant.

  • @Lopolin_LP
    @Lopolin_LP Месяц назад

    I have read and heard often about flakes but this made me finally understand how to make sense of the flake file, thank you!
    However I have two questions:
    1. Why do we put our flake and configuration files into our home directory? Is it not possible to put it into the /etc/nixos folder and make it work?
    2. If we have the configs in our home directory, why wouldn't we rather import the hardware configurations file from the /etc/nixos? Then if I just copy the whole dotfiles folder to a different computer it wouldn't apply the hardware config from the old pc... right?
    and I'm sorry if this is not the way of managing things, I'm pretty new to this stuff in general.

  • @Xaito
    @Xaito 6 месяцев назад +1

    I kinda expected the lock file to have the exact version of every single package, then I'd get the advantage - because I then could pin a troublesome package to a previous version while updating the rest of the packages to the newest version in the channel. But that doesn't seem to be the case here.
    Is there any advantage to working with a flake if you don't have the use case of synchronizing more than 1 PC to the same revision of the channel?
    I mean if I were to revert to a previous generation, wouldn't that have the same effect as rebuilding with a older state of the lock file? i.e. you switch back to a non-head state of the channel?

  • @teesh3rt
    @teesh3rt 3 месяца назад

    oh my god thank you! you just made flakes easy to understand for me!
    though, i want to split stuff up into multiple files, so that i can have stuff like "communication.nix" with stuff like discord and irc, and "games.nix" with stuff like wine and steam.
    how can i do that?

  • @csilipo
    @csilipo Месяц назад

    Sorry still confused, but this video makes it a bit clearer.

  • @s1n7ax
    @s1n7ax 3 месяца назад

    Awesome

  • @kastlekatofficial8839
    @kastlekatofficial8839 6 месяцев назад

    Great video, thank you for putting the time and effort into it! I just wanted to ask whether or not this setup uses the /etc/nixos/configuration.nix file. Since the flake.nix file references the configuration.nix in ~/.dotfiles, is the configuration in /etc just ignored? (when using --flake ~/.dotfiles)

    • @librephoenix
      @librephoenix  6 месяцев назад

      Thanks! In my setup, yes. All of my configuration is in ~/.dotfiles and /etc/nixos is ignored. Though, if you wanted you could put the flake.nix inside of /etc/nixos! In that case, you may need to run git commands with root tho

    • @michaelharmon5502
      @michaelharmon5502 2 месяца назад

      @@librephoenix How does Nix know to look in your ~/.dotfiles directory instead of the default location?

  • @negserg7639
    @negserg7639 5 месяцев назад

    Nice stuff! What web browser do you use? It reminds me tridactyl, but not exactly.

  • @zedddoctor
    @zedddoctor 3 месяца назад +1

    What browser are you using on your main system?

  • @MultiMunding
    @MultiMunding 3 месяца назад

    How do I get qemu to scale the monitor and allow copy paste to the VM? I can't get this to work in my nix VM :/

  • @adamduvick
    @adamduvick 3 месяца назад

    Thanks for this video! I made the switch to flakes because of it! One question: I see this line in configuration.nix `system.stateVersion = "23.11";`. I believe this is the same version as was defined in my flake.nix `nixpkgs.url` (mine is slightly newer than yours in the vid). I feel like I should inherit that from the configuration.nix file or vice versa so as to not have to manage the info in two places. Can you speak to the best way to do that?

  • @saranvishva7982
    @saranvishva7982 4 месяца назад +1

    bro can get your hyperland configuration and which distro are you using

  • @maf_aka
    @maf_aka 7 месяцев назад

    very concise and clear video, but I'm still not convinced how flakes are useful? I think I get it but also why would I need another .nix file just to create flake.lock file which I won't ever interact with?

  • @summerWTFE
    @summerWTFE 4 месяца назад +4

    I had to write which config to use like so "sudo nixos-rebuild switch --flake .#nixos-tutorial" or else I would get an error.

  • @benjy288
    @benjy288 3 месяца назад

    I'm still not sure what advantages flakes have, it seems like you can go back to older versions of packages, but you can also do that by changing the channel you're running, does flakes give you the ability to change the version of one specific package instead of all packages on your system like changing the channel would do?

  • @karthikeyanbalasubramanian7305
    @karthikeyanbalasubramanian7305 Месяц назад

    while using flakes instead of channels, and say im updating my os, should i remove the older one from the list using sudo nix-channel --remove and then add the latest one using --add. or should i just leave them as it is and just change them inside the flakes,nix file ?

  • @Alexander_Sannikov
    @Alexander_Sannikov 4 дня назад

    I really tried to understand flakes multiple times but failed. What's the intended work pipeline with flakes? Am I supposed to create them from scratch every time? Do I create literally one and that's it? Is there a way to generate them automatically?

  • @colin0516
    @colin0516 4 месяца назад

    7:43 mind blown flakes are going to save my sanity while ricing

  • @DreamsAPI
    @DreamsAPI Месяц назад

    Nice

  • @arcstur
    @arcstur 11 дней назад

    When updating the configuration.nix I should always run with --flake?

  • @mxmx2842
    @mxmx2842 5 месяцев назад

    Regarding the usage of flakes. Some packages can't be found as flakes. Does this matter ??

  • @kayachan5198
    @kayachan5198 4 месяца назад

    i followed along and got a flake.lock, does this mean that, if i wanted to reproduce my exact system (as it is according to the lock file) - then i just need to put the lock file on new system, then enable flakes and then, just sudo nixos-rebuild switch --flake
    would this then mean that, instead of reproducing my system via non flake configuration.nix and getting potentially different versions of packages
    if i do rebuild switch without --flake, does that just build my system according to the configuration.nix, and if i do it with --flake it rebuilds it according to the configuration.nix linked to the lock? (the 1 we put in .dotfiles)?
    god, the more i think about it, the more confused i am.
    this is what happens when someone without the skills just follows a tutorial, i only have more questions ...
    now i dont even know how to add and remove packages from my nix :D because i now have a flake :D haha

  • @bullpup1337
    @bullpup1337 7 месяцев назад

    sounds like this is the future… however it seems the migration is not quite straightforward. I have some packages from unstable in my config which seems to prevent the system from rebuilding for now - until I figure out how to fix that, that is

  • @CrazyMineCuber
    @CrazyMineCuber 7 месяцев назад

    Good video! I already know everything about flakes, but I think it is good for beginners. Maybe you could have explained the Nix language features a bit better that explaining them hand wavy and allowing a beginner to still think that it is black magic. So maybe explain that let allows you to bind variables and that {}: means to declare a function which takes a set and de-structures the arguments in the {}. So explain that outputs field can either be an attribute set or a function with the inputs field as input, and an attribute set as output.

    • @librephoenix
      @librephoenix  7 месяцев назад +1

      Thanks for the solid feedback! You may be right about my hand waving XD My original intention was to be a bit hand wavy for now so the video didn't get too long, but still provided a working config, while going into some of those more technical ideas in later video. But everything you mentioned is super important, so thanks for mentioning it!

    • @donaldmickunas8552
      @donaldmickunas8552 5 месяцев назад

      Actually, I agree with the hand wavey part. Most users aren’t programmers. Burying them in the weeds of programming syntax, structure, and terminology will turn NixOS to a programmer’s only OS.
      This was meant to be a beginner tutorial and introduction to NixOS. It is one of the best I’ve seen.

    • @CrazyMineCuber
      @CrazyMineCuber 5 месяцев назад

      @@donaldmickunas8552 Well, Nix IS a programming language. So even if people have not programmed before, they have to learn it to some degree if they want to use NixOS. And therefore, they might as well learn the tricky stuff right at the beginning because otherwise that lack of knowledge will come back and bit them later.

  • @sutalk1236
    @sutalk1236 5 месяцев назад +1

    Wallpaper name of purple trees? plz

  • @Redyf
    @Redyf 7 месяцев назад

    Can you share your NixOS dotfiles? Especially that top bar and hyprland config, looks great

    • @librephoenix
      @librephoenix  7 месяцев назад +1

      Just added them to the description, but here they are as well :)
      GitLab: gitlab.com/librephoenix/nixos-config
      GitHub: github.com/librephoenix/nixos-config

  • @PerryEarl
    @PerryEarl 25 дней назад

    So what does it actually do? After following your video, I now have this flake file and a lock file... but to install an application, I still have to add it to my /etc/nixos/configuration.nix file and then run nixos-rebuild switch , like I did before? I don't understand how/why anything is any different.

    • @packjackisback
      @packjackisback 13 часов назад

      You enable flakes, then run sudo nixos-rebuild boot (or switch) --flake PATH_TO_FLAKE

  • @Wynell
    @Wynell 5 месяцев назад

    Hi! What's the font?

  • @akibahmed229
    @akibahmed229 7 месяцев назад

    well explained..

  • @yaskokai2587
    @yaskokai2587 18 дней назад

    Pretty sure I followed all the steps correctly but building the flake gives me the flake path does not contain attribute packages.86_64-linux errors. Anyone know what to do??

    • @TheMistaWaters
      @TheMistaWaters 16 дней назад

      you need to change the name from nixos-tutorial to whatever your host name is, aka user@hostname

  • @rtdietrich
    @rtdietrich 3 месяца назад

    Nice OS but.... on my PC the fresh system is crashing/freezing many times (windows 10 is running without any issues)

  • @jonobvious
    @jonobvious 3 месяца назад

    i think it's ironic that ubuntu comes with vim preinstalled but nixos does not

  • @escapetherace1943
    @escapetherace1943 2 месяца назад

    What would make the most sense is for flakes to not even exist but to specify what version of what APP you want or say you want all apps all updated like arch to do so, with any exclusionaries listed. I mean wtf is this for real? I watched the video, I understand it, I followed it along in a VM but I don't see why

  • @agoston9835
    @agoston9835 7 месяцев назад

    i got syntax error ( inputs = { ) unexpected = expected ;

    • @librephoenix
      @librephoenix  7 месяцев назад +1

      Hmm.. sounds like a missing semicolon on some line(s) above it?

  • @Milianor-dev-qz3nj
    @Milianor-dev-qz3nj 3 месяца назад

    0:41 too late for that 🤣🤣

  • @Flackon
    @Flackon 7 месяцев назад

    Still not sure what the advantages of using flakes over the standard config are. Would have been nice to mention those at least on a surface level.
    Yeah you get a lockfile and a nicer cli output but for what?

    • @kiaragrouwstra4250
      @kiaragrouwstra4250 7 месяцев назад

      you get to separately specify the versions of your packages, and in a way that you can reproduce in version-control too

    • @Flackon
      @Flackon 7 месяцев назад

      @@kiaragrouwstra4250 Seems of limited use outside of development environments, as I typically just want to have the latest versions of my packages