/.dotfiles

my dotfiles

Primary LanguageLua

dotfiles

For personal use.

Setup

  1. 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.

  1. git clone git@github.com:esayemm/.dotfiles.git $HOME/.dotfiles

  2. Install nix

curl -L https://nixos.org/nix/install | sh
  1. 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
  1. Symlink home.nix
rm $HOME/.config/nixpkgs/home.nix
ln -s $HOME/.dotfiles/home.nix $HOME/.config/nixpkgs/home.nix
  1. Activate home-manager
home-manager switch
  1. Install vim plugs
vim
# inside vim
:PlugInstall