For personal use.
- Create github ssh key
ssh-keygen -t ed25519 -C "email@gmail.com"
eval "$(ssh-agent -s)"
[ ! -f ~/.ssh/config ] && touch ~/.ssh/config && echo "
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
" >> ~/.ssh/config
ssh-add -K ~/.ssh/id_ed25519
pbcopy < ~/.ssh/id_ed25519.pub
Add new SSH key to github account, paste content of public key here.
-
git clone git@github.com:esayemm/.dotfiles.git $HOME/.dotfiles
-
Install nix
curl -L https://nixos.org/nix/install | sh
- Install home-manager
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
NIXPKGS_ALLOW_INSECURE=1 nix-shell '<home-manager>' -A install
- Symlink home.nix
rm $HOME/.config/nixpkgs/home.nix
ln -s $HOME/.dotfiles/home.nix $HOME/.config/nixpkgs/home.nix
- Activate home-manager
home-manager switch
- Install vim plugs
vim
# inside vim
:PlugInstall