Nix Home Manager Tutorial
DevInsideYou
In this video we are going to learn about Home Manager - a program that allows you to not only keep your .dotfiles but also the programs themselves in sync across all of your devices by leveraging the power of Nix!
Make sure to check out the links from our sponsors: Scala Jobs: https://scalajobs.com Rust Jobs: https://rustjobs.dev
The commit is here: https://github.com/agilesteel/.dotfiles/tree/7a99f9e97e444efbb9c65548861a896f0f4e9d44 The raw files from that commit are here: https://raw.githubusercontent.com/agilesteel/.dotfiles/7a99f9e97e444efbb9c65548861a896f0f4e9d44/nix/home-manager/flake.nix https://raw.githubusercontent.com/agilesteel/.dotfiles/7a99f9e97e444efbb9c65548861a896f0f4e9d44/nix/home-manager/home.nix
The fix for the sudo installer: https://discourse.nixos.org/t/installing-home-manager-on-ubuntu/25957/8 The Nix Flake for Scala is here: https://github.com/devinsideyou/scala-seed My dotfiles are here: https://dotfiles.devinsideyou.com
This is how you can see a diff between the last 2 generations:
home-manager generations | head -n 2 | tac | cut -d " " -f 7 | xargs nix store diff-closures
You can also use a separate tool called nvd to do this:
home-manager generations | head -n 2 | tac | cut -d " " -f 7 | xargs nvd diff
00:00 Intro 01:08 What is Nix? 02:04 What is Nix Home Manager? 02:40 Why use Nix Home Manager? 03:22 The best way to learn Nix 05:58 Nix Home Manager with Flakes Installation Instructions 10:08 Nix Home Manager with Flakes Installation Demo 21:07 Nix Home Manager commands and aliases 22:37 How YOU can get started with the Nix Home Manager 28:21 The Nix Language 40:22 Outro
Website: https://devinsideyou.com
Patreon: https://patreon.devinsideyou.com Discord: https://discord.devinsideyou.com Telegram: https://telegram.devinsideyou.com Twitter: https://twitter.devinsideyou.com GitHub: https://github.devinsideyou.com LBRY: https://lbry.devinsideyou.com
Install scripts: https://install.devinsideyou.com Giter8 templates: https://g8.devinsideyou.com
Spotify concentration playlist: https://code.radio.devinsideyou.com
Cheers and Happy Coding!
#HomeManager #NixFlakes ... https://www.youtube.com/watch?v=utoj6annRK0
243135345 Bytes