Your NixOS series is the most accessible I've seen for people already familiar with Linux. Perfect pacing and level of detail. Each new lesson builds on concepts already covered. Thank you.
@roku1
7 ай бұрын
This is probably the best intro to Nix series I've seen. I especially love the fact that you explain everything in terms of the underlying nix language which unifies everything together. p.s. I was going to suggest moving all your variables to an attribute set called e.g. params. That way you only have to pass params as an argument, and not each of the individual variables which quickly becomes tedious. Then access variables with e.g. params.hostname instead of hostname. Can also combine with someone else's suggestion to move all variables to a file.
@roku1
7 ай бұрын
Ooops I see you've already done that since the video was recorded.
@griffinb2008
4 ай бұрын
Your videos are so helpful man. I'm learning Nix for stuff I'm doing at work and it can feel overwhelming at times. I like to watch your videos at night with a nice glass of bourbon. Currently enjoying a fine glass of Bardstown Origin Series Bottled in Bond as I watch this. Thanks so much for your work. Much appreciated.
@jgoehr
8 ай бұрын
I really like your nixos videos. I think you are doing a great job. Keep up the great work!
@shifteleven
8 ай бұрын
That's a cool take. I was using module options to control many of those variables. But often I'm not really changing those values - so maybe this is cleaner in that then it's obvious when things are options, and what are global non-changing configs. thanks
@Mseller1
4 ай бұрын
This was super helpful! Thanks for this!
@NicolasBPierron
8 ай бұрын
For the first half of the video I was about to comment that you could introduce attribute sets to avoid the long list of `inherit`. But now, I will help you at being lazy and only suggest `with userSettings;` as a mean to avoid prefixing everything with the name of the attribute set.
@rishi2504
8 ай бұрын
Excellent stuff! Could you please cover your setup for this IDE/WM you are using to edit these files.
@lel7531
17 күн бұрын
Amazing videos !! Please make more ❤
@bryantpaz7
Ай бұрын
I love you, nothing more nothing less
@karthikeyanbalasubramanian7305
6 ай бұрын
need doomemacs installation video please
@marcuswest4572
6 ай бұрын
So is there a way you stick all your variables in a separate file and reference it?
@jonasbirner2231
7 ай бұрын
When you were talking about using attribute sets instead of individual variables but then have to add userSettings in front of each other, couldnt you just use a with userSettings at the beginning of the file to solve that?
@hikingpete
7 ай бұрын
What I found effective is to mkOption for my various settings and attach them to the config attrSet.
@me5ng3
8 ай бұрын
Where are the nixos flakes tutorials linked?
@Redyf
7 ай бұрын
Check his channel
@Dark_Lobster
8 ай бұрын
I see most configurations make several profiles in the config file, then the rebuild automatically build the correct configuration based on username and host. Whats the benefit of doing it manually this way?
@jmoell1
7 ай бұрын
Tak!
@unLinuxeroMas
7 ай бұрын
tuto para hacer un blog como el tuyo is dope ? also great video
@alaaelsamouly8944
7 ай бұрын
i want to install your hyprland config
@abbcc555
6 ай бұрын
why do you reference the username sometimes just like that and sometimes {username}
@davids1378
5 ай бұрын
If username is a variable of type string, then ${username} evaluates to its value (e.g. "emmet") instead of the literal "username".
@amansetia8655
7 ай бұрын
why not make your own options? You can add type safety, descriptions, default values and more
@vaisakhkm783
Ай бұрын
XD he already mentioned he don't want ny of those..
@svenum4742
8 ай бұрын
I even went one step further and moved all the variables from flake.nix to the folder ./hosts/HOSTNAME/settings.nix and imported them into this specialArgs with "settings = import ./hosts/HOSTNAME/settings.nix;". This means I can make settings per host and manage multiple hosts at the same time in one flake.
@Ben-zo3qb
8 ай бұрын
that sounds like a solution to a problem that I'm trying to solve... any chance you can share a link to your repo? I currently have ansible implementing this functionality because I couldn't figure it out in nix
@notcorrect
5 ай бұрын
I was thinking that but then I decided add my users as toggle-able modules instead.
@droydi
7 ай бұрын
You have done a great job, you and @vimjoyer are the ones getting me through this steep learning curve. Long time Debian user who has fallen in love with Nix because of you two. Thank you.
@StillConfusing
7 ай бұрын
i'm jumping in nix from arch this stuff is awesome, keeping my laptop and desktop at all similar has been the impossible task
@librephoenix
6 ай бұрын
I too used Arch btw, until I learned NixOS :)
@chewbakartik
6 ай бұрын
This is an amazing video. Thanks for explaining it so clearly. I am very new in my nix journey, and have been trying to figure out how to pass variables/args around like this.
@JuanEsquitin
8 ай бұрын
To me you are the leader when it comes to NixOS. Ty! for your great content. I am learning a lot through your videos.
@librephoenix
8 ай бұрын
Thanks! I'm glad you've been finding the NixOS stuff useful :)
@KingZero69
2 ай бұрын
keep it up bro 💪
@nekorug
6 ай бұрын
i'll second some of the other comments here saying that this would probably be better served using the module system with your own options. you can even make a freeformtype option so you can set whatever variables you want in there if you don't care about type safety or any of the fancier things like type merging... i sometimes use a options.opts freeformtype that i can then just access using config.opts.whatever wherever i want in any nixos module. you can even go a step further and use flake-parts to use the module system for the entire flake and define them there, then pass them along to nixos' and home-manager's own module systems using specialArgs. personally i have flake-parts > nixos > h-m set up like this in a chain, each layer above it passing along the specialArgs from the system above it (though you need to prune lib, config, and options before passing on the attributes!). it's wild what you can get away with if you understand a little bit of how evalModules works lol
@havardvingensunde390
19 күн бұрын
Can you make a hyprland setup video?:) Your tutorials are great!
@zperk13
4 ай бұрын
Is it possible to pass the variables to home manager if you're using home manager in the standalone way instead of the module way?
@1234minecraft5678
2 ай бұрын
I think you are also able to construct an attribute set from any import using the @ syntax? While this does not help when passing the stuff it would help with writing it at the import
@yash1152
Ай бұрын
9:11 10:49 12:10 wow the annotations at the bottom emacs editor seems to be nice then?
@karthikeyanbalasubramanian7305
5 ай бұрын
What commands have you used after making these changes to take effect ?
@phanirithvij
8 ай бұрын
I'm gonna jump in into the world of nixos and hyperland. It's very tempting 😢
Пікірлер: 47