Moving Nixos System Configuration Into A Flake

  Рет қаралды 26,156

Wil T

Wil T

Күн бұрын

Пікірлер: 70
@alex-jackson
@alex-jackson 3 жыл бұрын
Will, you are the GOAT, seriously. Thanks for making these well laid-out, informational videos. I feel like I'm actually learning nix for the first time, instead of being lost!
@jordanstanway243
@jordanstanway243 2 жыл бұрын
Many thanks for sharing an ‘unwrapped’ example for putting the OS and HM configuration into a flake. It helps me understand better what is going on, and is a bit more straightforward to follow while I experiment with NixOS on just two machines. I’m sure the wrappers will be worthwhile if I start managing more machines with Nix, and after I understand Nix better. In the meantime, this is exactly the level of introduction I need to maintain momentum.
@trashak
@trashak 3 жыл бұрын
Great series. Very informative and great to follow along as concepts are introduced in a concise order and not too much in one step. I'd love for you to continue this series. Any plans for the near future?
@jongschneider
@jongschneider 9 ай бұрын
This series is great. Please make more that go into the more complex configurations and utilization of language features like overlays etc.
@sagikazarmark
@sagikazarmark 2 жыл бұрын
I love how you explain everything as you go along with the right level of details. Please continue making videos!
@wilfridtaylor
@wilfridtaylor 2 жыл бұрын
Thanks, I plan to get back into it again. Last year has been really hectic.
@gorudonu
@gorudonu 2 жыл бұрын
@@wilfridtaylor please do, your videos helps to understand how nixOS works and how to configure it properly. thanks!
@jmac217x
@jmac217x 2 жыл бұрын
excellent series. Easily the best instructions on KZbin for NixOS. Jupiter Broadcasting just kicked off the NixOS challenge so expect this series to see some traffic in the coming weeks! Love & Respect
@zexidaohuige
@zexidaohuige 2 жыл бұрын
IMO This is the best Nix content on youtube, hope you can find time to continue the series
@Paginski
@Paginski 3 жыл бұрын
I love this series, and it helped me a lot to move from Arch to NixOS. Are there any plans to continue the series?
@bibanez135
@bibanez135 Жыл бұрын
I was following perfectly until nixos-rebuild build --flake .# Turns out that if you're in a git repo it will only build correctly if all your files are tracked by git, so you need to do git add Thank you for these tutorials. They're very useful. When you've got the time I would love to get a continuation
@ariseyhun2085
@ariseyhun2085 Жыл бұрын
I thought there were only warnings, but everything would still build regardless?
@biigsmokee
@biigsmokee Жыл бұрын
@@ariseyhun2085 nah, the files don't exist in /nix/store. spent quite a few minutes on it today
@MartinsTalbergs
@MartinsTalbergs 3 жыл бұрын
Keen to hear on overlays! Keep them coming! Great work!
@EliasIbero
@EliasIbero Жыл бұрын
Hey Wil These series of videos have been so awesome. Well put together so easy to follow. Love your way of instructing. Are you planning to update them and add more to your collection? I will love to see more new videos from you.Thank You in advance!
@GeorgeGriffithsJustG
@GeorgeGriffithsJustG 3 жыл бұрын
Another super helpful video - audio sounds great! What other videos do you have planned? :)
@wilfridtaylor
@wilfridtaylor 3 жыл бұрын
Thanks :). Next one will be on how to setup overlays and override package settings.
@GeorgeGriffithsJustG
@GeorgeGriffithsJustG 3 жыл бұрын
@@wilfridtaylor Awesome - appreciate it!
@SamWhitlock
@SamWhitlock 3 жыл бұрын
@@wilfridtaylor these videos are seriously the missing manual for this stuff. The user attrition between "nix curious" and "FP expert mega abstract config" is very wide, and I've found almost nothing besides these vids to bridge the understanding!
@designernasser
@designernasser 3 жыл бұрын
Take this “like” even before I watch the video!
@yellowajah
@yellowajah Жыл бұрын
Thank you so much for this resource. I'm currently using it as a jumping-off point into nix. I've hit the like/subscribe/etc. I hope to see you start producing again.
@Saulimedes
@Saulimedes 3 жыл бұрын
You Videos are amazing! Don't stop there. You mention a lot of interesting stuff I would love to see you get covered! Kudos.
@mbpnix6513
@mbpnix6513 3 жыл бұрын
Awesome tutorial, thanks a lot!
@theof6757
@theof6757 3 жыл бұрын
Thanks Wil! Very helpful indeed!
@maninalift
@maninalift 3 жыл бұрын
These videos have been very helpful to me. You go through at a great pace, a good mixture of teaching the fundamentals and giving a practical guide. I'd love it if you'd include a video on how to differentiate configuration for multiple machines with a single repo, based on this example system that you are using. Looking at your dotfiles, to be honest I'm a bit confused, you seem to be doing a lot 🙂 - OK, after watching this video to the end, you mostly answer this I think, but I'm still unclear how the hostname gets set which is used to select the correct config
@wilfridtaylor
@wilfridtaylor 3 жыл бұрын
Hi, it gets the hostname from what the machine is currently set to. I need to do a video at some point showing how to build a ISO and how to deploy a system from a flake.
@ZaarsShed
@ZaarsShed 3 жыл бұрын
@@wilfridtaylor Oh yes, please! I'd like to watch that one.
@Isti115
@Isti115 3 жыл бұрын
Thanks for the great content, I'm just waiting until friday for the release of 21.05 and will do my first install, so I'm trying to prepare as much as I can! :) ps.: The audio was still a bit lower than ideal for me.
@SamWhitlock
@SamWhitlock 3 жыл бұрын
Heck yeah! 21.05 = no more experimental cmdline workaround!
@Isti115
@Isti115 3 жыл бұрын
@@SamWhitlock Are flakes getting officially supported with this release? 🤔 I thought that they would still be in the experimental phase.
@SamWhitlock
@SamWhitlock 3 жыл бұрын
@@Isti115 discourse.nixos.org/t/21-05-release-schedule/12528 hmmm I'm actually not sure. Nix 2.4 has them, but maybe they're just going to bump the current 2.3 version :(
2 жыл бұрын
Great series! Looking forward for more content
@Moe-jy9qw
@Moe-jy9qw 3 жыл бұрын
Thank you very much for your tutorials, they're awesome! One question I have is: In your dotfiles repo there is only one apply.sh script, that does what apply-system.sh from this video does. So how do you actually apply the home-manager configuration in your current dotfile repository?
@wilfridtaylor
@wilfridtaylor 3 жыл бұрын
Sorry I took so long to reply. I assume you are the same person who opened the issue on my dot files repo. If not I replied to this here github.com/wiltaylor/dotfiles/issues/1
@Moe-jy9qw
@Moe-jy9qw 3 жыл бұрын
@@wilfridtaylor Ah, actually I'm not the same person, so thanks for the link! :)
@ViniciusProvenzano
@ViniciusProvenzano Жыл бұрын
Love the vídeos, it is worth continuing! :) I do not have issues with the keyboard. What annoys a bit is the noisy mouse scrolling. :)
@ariseyhun2085
@ariseyhun2085 Жыл бұрын
This is exactly the video i needed! Thank you
@muntoonxt
@muntoonxt 3 жыл бұрын
16:00 The "pkgs = import nixpkgs { ... }" isn't doing anything for me. Doesn't the pkgs variable need to be used in some way?
@malteneuss8058
@malteneuss8058 2 жыл бұрын
Indeed that value is never used. Maybe you can use "pkgs.lib" instead of "nixpkgs.lib" in the line below?
@will-nw6gv
@will-nw6gv Жыл бұрын
Such great videos. Thank you very much!
@michaelward3981
@michaelward3981 2 жыл бұрын
Great Video! I hope to see more
@TheStuzenz
@TheStuzenz 3 жыл бұрын
Loved the tutorial. It worked well for me. I did find I had to make one addition to the flake to stop the following error ``` "error: The option `home.stateVersion' has conflicting definition values:" ``` It was some kind of error between 20.09 and 21.05 when on 21.05 The edit I did was the following one ``` in { homeManagerConfigurations = { stuart = home-manager.lib.homeManagerConfiguration { inherit system pkgs; username = "stuart"; stateVersion = "21.05"; # added this to get it working for me homeDirectory = "/home/stuart"; configuration = { imports = [ ./users/stuart/home.nix ]; }; }; }; ```
@TheOPtmal
@TheOPtmal 3 жыл бұрын
Do `stateVersion = pkgs.lib.trivial.release;` instead, that way you dont need to go in and always manually change it everytime there's a new version.
@biigsmokee
@biigsmokee Жыл бұрын
I was having issues building halfway through, it's because I initialized a git repo. It looks like if you have a git repo only added files will be built, so you need to run a `git add .` first and it will build
@Ski4974
@Ski4974 3 жыл бұрын
Could you do a follow up video on modularizing some parts of the config for multiple machines and stuff?
@wilfridtaylor
@wilfridtaylor 3 жыл бұрын
Yeah I will cover how I am doing it in my dot files at some point once I have cleaned them up so they are easier for other people to use.
@pawelbokota7450
@pawelbokota7450 2 жыл бұрын
Very Helpful. Thank You!!
@RonnieNissan
@RonnieNissan 3 жыл бұрын
Your videos are really good, informative and entertaining. I just wish your voice could be louder, the mechanical keyboard (which sounds awesome BTW) overpowers your voice.
@wilfridtaylor
@wilfridtaylor 3 жыл бұрын
Yeah, i think i need to just use a rubber dome keyboard while i record :(.
@RonnieNissan
@RonnieNissan 3 жыл бұрын
@@wilfridtaylor or maybe get a better mic. Keep it up.
@reiko551
@reiko551 2 жыл бұрын
I am on Darwin system. Do I need to install home-manager and nix-darwin CLIs ?
@Redyf
@Redyf 2 жыл бұрын
Can you make a video about how to install dwm on nixOS?
@giuji
@giuji Жыл бұрын
best nixos resources on the internet, is there any chance of a new video coming out??
@jjuel5
@jjuel5 3 жыл бұрын
Great video I just think the audio needs to be a little louder.
@idjdbrvvskambvvv9007
@idjdbrvvskambvvv9007 Жыл бұрын
this is gold damn homie is smart
@laughingvampire7555
@laughingvampire7555 Жыл бұрын
the volume is too low
@herrxerex8484
@herrxerex8484 2 жыл бұрын
Hey Could you do a video on explaining the directory structure of your current system :]
@wilfridtaylor
@wilfridtaylor 2 жыл бұрын
Yeah I am going to make this my next video I think. Plan is break out my current dotfiles structure and turn it into a template and show how I set it up and why.
@herrxerex8484
@herrxerex8484 2 жыл бұрын
@@wilfridtaylor wow that will be awesome
@edwardyang881
@edwardyang881 2 жыл бұрын
@@wilfridtaylor Hey Wil, would there happen to be an ETA for your next video? I'm really looking forward to learning about your new dotfiles structure. Most specifically, I find the way you have your neovim configuration put into a separate github repository to be interesting. Is this something you'll be explaining in your new video? Thanks for the quality content, hope to see more soon!
@diegonayalazo
@diegonayalazo 2 жыл бұрын
Thanks for sharing
@BrazenNL
@BrazenNL Жыл бұрын
Shift-o opens a line above your current line.
@VigilanceTech
@VigilanceTech 3 жыл бұрын
Audio and font size are much improved. Audio could stand a bit more, maybe speak a little louder and enunciate a bit better. Before it was real strain to hear and see. Now I can actually concentrate more on the content rather than the delivery.
@pmarreck
@pmarreck 2 жыл бұрын
This was helpful, but the audio was recorded too low
@howtostudycantonese9956
@howtostudycantonese9956 3 жыл бұрын
godly
@RantOfTheDay01
@RantOfTheDay01 3 жыл бұрын
I tried NixOS and I really like the concept but certain things give me a headache. For example I'm too "stupid" to install the vmware-horizon-client and other things like that. I am probably just lacking too much knowledge or whatever to grasp how to fix that ;) Anyways thanks for your videos :)
@wilfridtaylor
@wilfridtaylor 3 жыл бұрын
I wouldn't say you are too stupid. Everyone has to start somewhere. You should be able to install vmware horizon client by adding the following to your config systemPackages = with pkgs; [ vmware-horizon-client ];
@RantOfTheDay01
@RantOfTheDay01 3 жыл бұрын
@@wilfridtaylor thanks yeah I figured out what the issue was. I needed to install it System wide and not user specific ;)
@xade8381
@xade8381 2 жыл бұрын
I hope this series will be continued would also like to see a video covering svanderburg/nix-processmgmt
NixOS Filesystem Overview
20:01
Wil T
Рет қаралды 9 М.
Intro to Flakes
19:32
Wil T
Рет қаралды 20 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Modularize NixOS and Home Manager | Great Practices
8:07
Vimjoyer
Рет қаралды 33 М.
How to put nixos config into a git repository
31:30
Wil T
Рет қаралды 17 М.
How Linux Kernel Runs Executables
16:46
Nir Lichtman
Рет қаралды 49 М.
You Should Use Flakes Right Away in NixOS!
26:09
LibrePhoenix
Рет қаралды 76 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 709 М.
Matthew Croughan - Use flake.nix, not Dockerfile - MCH2022
17:25
Matthew Croughan
Рет қаралды 51 М.
Nix Language Overview
30:51
Wil T
Рет қаралды 11 М.
NixOS Stoat: Not so scary after all?
26:04
Stephen's Tech Talks
Рет қаралды 6 М.
How to Start Adding Modularity to your NixOS Config
32:44
LibrePhoenix
Рет қаралды 37 М.
NIX OS: the BEST package manager on the MOST SOLID Linux distribution
17:08
The Linux Experiment
Рет қаралды 328 М.