Vigyata.AI
Is this your channel?

Updating My NixOS Flake Live!

720 views· 25 likes· 81:10· Jan 12, 2024

🛍️ Products Mentioned (9)

https://gitlab.com/Zaney/zaneyos 🌟 Thank you for watching! Please let me know what you think in the comments! 🔻 MY LINKS 🔻 🛰️ Website: https://www.zaney.org 💰 Patreon: https://www.patreon.com/akazaney 🐘 Mastodon: https://mas.to/@Zaney 🗨️ Discord: https://discord.gg/2cRdBs8 🛒 Store: https://zaney-shop.fourthwall.com ☕ BuyMeACoffee: https://www.buymeacoffee.com/notzaney 📁 Gitlab: https://www.gitlab.com/Zaney/ 💳 CashApp: $theofficialtylerk 🎴 Venmo: @TheOfficialTylerK 💸 Liberapay: https://liberapay.com/Zaney ✉️ Email: tylerzanekelley@gmail.com

About This Video

I went live at like 1:30 in the morning because I couldn’t sleep, and I wanted to finally update my NixOS flake the “right” way: define username + hostname once at the top, then inherit them everywhere so people can replicate my setup without hunting through a million files. Of course, Nix decided to fight me the entire time. I ran into syntax errors, the classic “unexpected ${}” stuff, and then the even more annoying issue where hostname worked but username mysteriously didn’t make it into Home Manager. The big takeaway is how to actually pass variables into Home Manager properly. I was trying to use the same specialArgs approach I use for NixOS modules, but Home Manager needs extraSpecialArgs. Once I wired that up, the username variable finally showed up where it needed to, and everything started behaving. After that, I cleaned up my README with a clearer step-by-step process to reproduce my system, pushed the changes to GitLab, and talked a bit about why I like flakes for reproducibility (and why install scripts on other distros tend to eventually explode). Also: no, I’m not converting the README to org-mode. You can PR it if you want, but it’s not getting merged.

Frequently Asked Questions

🎬 More from Zaney