curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
echo "\"$HOME\"" > home-manager/home-dir.nix
home-manager -f home-manager/home.nix switch -b backup
# enable clipboard on linux
sudo apt-get install xsel
# fix lazygit error on linux
sudo chmod a+rw /dev/tty
# add ghq base
git config --global --add ghq.root $(realpath ../)
# Make neovim symlink for wsl.exe (vscode neovim needs this)
sudo ln -s $(which nvim) /usr/local/bin/nvim
# allpy on NixOS
sudo nixos-rebuild switch -I nixos-config=configuration.nix
# nix-shell with pyenv dependencies
nix-shell -p zlib xz readline libffi libuuid openssl sqlite bzip2 tk