Nix flakes explained

preview_player
Показать описание
Enabling flakes:

Creating a flake:
$ nix flake init

Updating a flake:
$ nix flake update

Flake:
```
{
description = "my epic vims collection";

inputs = {
};

outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
in
{
bob =
{
buildInputs = [
];

shellHook = ''
echo "hello mom"
'';
};
};
}
```
(yes, I know I could push it to github, but I'm extra lazy today)
Рекомендации по теме
Комментарии
Автор

If my arithmetic is correct, you said nix twenty-seven (27) times. You said flake twenty-four (24) times, although technically thirteen (13) of the twenty-four (24) times was in the plural form as flakes. Nix, flakes, and cookies... yummy. :-) Keep up the excellent work with Nix and NixOS, as some of us are learning along with your videos and they help a lot. Thank you.

Becoming-Human
Автор

Just last night I was complaining to my friend how I couldn't find a simple explanation how to use flakes, and you posted a video a few hours later. Thank you!

dasdadasdasd
Автор

I had just recently decided that since my Nixos was already working, it probably wasn’t worth it to figure out the motivation behind nix flakes (which I really couldn’t grasp until I watched this video). Thanks, this really explained it.

raunakchhatwal
Автор

This comment for the YT engagement algorithm: my Emacs bros would be mad at me watching content from someone called Vimjoyer, but I don't care. After having just gone though a painful Debian reinstall, I wondered if there was a better way. Nix might be it. Or it might be Guix (who knows?).

For the time being, I am grateful for these videos. You have a new subscriber!

auntiecarol
Автор

Your video should be part of a "must watch" list for NixOS beginner tutorials. Thank you for your effort!

awakeningnow
Автор

An excellent video. I installed NixOS a few days ago and this is what I was looking for as I was putting everything into the main system config but didn't want to. Thanks!

syrusk
Автор

That is the most useful flakes introduction I have ever seen, good job mate

Brone_K
Автор

Honestly probably the simplest most matter of fact intro to Flakes I've pulled up so far. Thank you for this!

brianlogan
Автор

Very well explained. Your initial comment about being on the 3rd page of <search engine name> still holds true nearly a year later.

A-znwh
Автор

Your microphone is not terrible! You sound clear AF!

hmon
Автор

I see that the playlist already has a lot of videos, but im still going to comment to make YouTube recommend this playlist to other users just it did to me:)

pmmeurcatpics
Автор

your channel is gold, i understand about flakes and nixOS more deeply, i hope that you can more videos talking NixOS and its environment.

MiaLovesRod
Автор

Clearest explanation/example of nix flakes I've seen so far. Thanks, really useful!

TheRationalLifter
Автор

I really appreciate your work VJ. The presentation is excellent - visually clear and painstaking. Seems like I'm not the only person who appreciates this.

marcuswest
Автор

Thanks, I've always thought that Nix is some witchcraft that is difficult for plebeians to practice, but turns out that it was a huge fallacy. Nix is so simple. Wouldn't have cleared out my doubt without you, many thanks for this splendid video, cheers.

mumk
Автор

Nix flakes are the monad of packaging formats

RegularTetragon
Автор

I finally started to understand what’s Flake are with your video.
Now it’s time for some practice ❤

gungun
Автор

God bless! I'm trying to learn NixOS so I can install it on my system, and flakes were by far the hardest concept for me to learn, but this made it simple to understand. Thank you so much!

WaterGame
Автор

Finally, a good nix flake description! Thx

benarcher
Автор

My major concern with flakes is that in today’s age keeping your system up to date with security fixes is paramount. I would want to run updates on all my flakes weekly in an automated fashion. I wish the cli had an easy option for that.

UnabashedOops