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/
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 😊
Yep. Agree totally.
Thank you so much for your videos on NixOS! It really helped me understand it :)
Great work, that was beyond helpful!
Very helpful. I like the progression from the different methods. Flakes FTW!
What the difference between flakes and home-manager? And why should I even use it.
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.
If i put all my configuration inside a flake...
What should i do with my /etc/nixos/configuration.nix.
Can i delete it?
Yeah, i moved my configuration.nix and home.nix to the same directory as my flake
Amazing quality and content of the video. new sub!
thanks bro
Hello could you make a video on how to update a nix os package cause of the nix store unable to dl drv
感谢大佬!!❤
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?
Sure. I use alacritty and ZSH shell.
@@liyangau awesome, do you have a dotfile as well?
neat
can you make a video about Nix Dev shells? I don't understand them
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.
@@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 ❄️
Btw thanks for replying, that website is a great resource for learning.
bro you leaked your ssh key
good
If you were referring to the keys in 4:00, it was just the public key
@@liyangau hi can you tell me your private ssh key so i can hack into your computer? thanks