NixOS Introduction - Nix Flakes

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • Continue with the NixOS series, in this video I will show you how to use nix flakes in NixOS. Use Home manager as NixOS module or Standalone mode.
    Once you know how to use flake, you can start building your configs and put them on Git repository.
    I hope these three video help you to start using Nix.
    Blog address: tech.aufomm.com/

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

  • @Redyf
    @Redyf Год назад +11

    You're really talented, this is one of the best videos i've seen that explains complex topics of Nix and NixOS in a way everyone can understand. Thank you very much and please, keep uploading 😊

  • @anonymouscommentator
    @anonymouscommentator Год назад +2

    Thank you so much for your videos on NixOS! It really helped me understand it :)

  • @bonsohazard
    @bonsohazard Год назад +1

    Great work, that was beyond helpful!

  • @PestisNonSapien_GMO_exHuman
    @PestisNonSapien_GMO_exHuman Год назад +1

    Very helpful. I like the progression from the different methods. Flakes FTW!

  • @elys7563
    @elys7563 Год назад +3

    What the difference between flakes and home-manager? And why should I even use it.

    • @liyangau
      @liyangau  Год назад +5

      home-manager is a software helps you to manager application configurations for different users. If you need to install a software for a user, you use home manager to do it.
      flakes is package manager. In the tutorial, I use flakes to manage different channels (nixpkgs, home-manager) and all configurations in one single folder. (without flakes, nixos config will be sitting under /etc/nixos and home-manager under ~/.config/nixpkgs)
      When I need to setup a new computer, flakes helps me to make sure the version of the channels (as in flake.lock) are the same so the packages built from these channels remains the same.

  • @Nojipiz
    @Nojipiz Год назад +4

    If i put all my configuration inside a flake...
    What should i do with my /etc/nixos/configuration.nix.
    Can i delete it?

    • @Redyf
      @Redyf Год назад +1

      Yeah, i moved my configuration.nix and home.nix to the same directory as my flake

  • @Nojipiz
    @Nojipiz Год назад +1

    Amazing quality and content of the video. new sub!

  • @asynthe
    @asynthe Год назад

    thanks bro

  • @Miinui0
    @Miinui0 Год назад

    Hello could you make a video on how to update a nix os package cause of the nix store unable to dl drv

  • @YuLi-ot6go
    @YuLi-ot6go Год назад

    感谢大佬!!❤

  • @jyuangrace4502
    @jyuangrace4502 Год назад

    Hi Li, can you tell me what terminal emulator you are using? when you copy & paste the commands, it ran the typewriter type of animation. It's prety cool. Can you elaborate on that?

    • @liyangau
      @liyangau  Год назад

      Sure. I use alacritty and ZSH shell.

    • @jyuangrace4502
      @jyuangrace4502 Год назад

      @@liyangau awesome, do you have a dotfile as well?

  • @Kampouse
    @Kampouse Год назад

    neat

  • @Redyf
    @Redyf Год назад

    can you make a video about Nix Dev shells? I don't understand them

    • @liyangau
      @liyangau  Год назад +1

      Do you mean the nix-shell or nix develop command?
      I use nix-shell to get a CLI tool on demand (so I don't need to install it globally) and use the latter to create environment for specific folder.
      It works great when you combine it with direnv. Here is a blog post by determinate.systems determinate.systems/posts/nix-direnv, I hope it helps.

    • @Redyf
      @Redyf Год назад

      @@liyangau actually it's those nix dev shells that people use in their flake.nix config, i'm not sure about how they work. I understand the point of nix-shell tho and it's AMAZING. I use it all the time ❄️

    • @Redyf
      @Redyf Год назад

      Btw thanks for replying, that website is a great resource for learning.

  • @jakedespppp
    @jakedespppp Год назад +1

    bro you leaked your ssh key

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

      good

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

      If you were referring to the keys in 4:00, it was just the public key

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

      @@liyangau hi can you tell me your private ssh key so i can hack into your computer? thanks