Install nix
# Linux: multi-user
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
# Linux: single-user
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --no-daemon
# macOS: multi-user
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install)
Enable experimental features
sudo mkdir -p /etc/nix
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
Clone the home-manager config
git clone https://git.mfocko.xyz/mfocko/home-manager.git ~/.config/home-manager
Install home-manager
nix run home-manager/master -- init --switch