/nix-home

Development environment configuration using Nix + Home Manager

Primary LanguageShell

nix-home

  1. Install Nix

  2. Install Home Manager

  3. Create symlink

rm $HOME/.config/nixpkgs/home.nix
ln -s $HOME/git/nix-home/profiles/home.nix $HOME/.config/nixpkgs/home.nix
  1. Add the following line into ~/.zshrc
source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
  1. Just run home-manager switch from now on whenever you need to update the current configuration

Changing default shell

  1. Add default shell
echo "$HOME/.nix-profile/bin/zsh" | sudo tee -a /etc/shells
  1. Change default shell
chsh -s "$HOME/.nix-profile/bin/zsh"

Automatic installation

Run bootstrap.sh <PROFILE>. It should work. Maybe.