wsl --update
wsl --install
Run the following command to install essential development tools and libraries:
sudo apt update && sudo apt install -y \
build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev \
curl git libncursesw5-dev xz-utils tk-dev \
libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
Install Nix with the following command:
sh <(curl -L https://nixos.org/nix/install) --daemon
Verify that Nix is installed correctly:
nix-shell -p nix-info --run "nix-info -m"
Copy your SSH keys from Windows:
cp -R /mnt/c/Users/<YourWindowsUsername>/.ssh/ ~/.ssh
Replace <YourWindowsUsername>
with your actual Windows username.
Change to your home directory:
git clone git@github.com:zbouslikhin/dotfiles.git ~/
Copy the configuration files:
cp -R dotfiles/config/ ~/.config
Copy the Home Manager configuration:
cp -R /home/zaidb/dotfiles/config/home-manager ~/.config/home-manager
Copy the Nix configuration:
cp -R /home/zaidb/dotfiles/config/nix ~/.config/nix
Update Nix channels:
nix-channel --update
Install Home Manager with the following command:
nix-env -iA nixpkgs.home-manager
Activate Home Manager using the Flake configuration:
home-manager switch --flake ~/.config/home-manager#zaidb-wsl
Set Zsh as your default shell:
chsh -s /home/zaidb/.nix-profile/bin/zsh
asdf plugin-add python
asdf install python latest
asdf global python latest