Skip to content

zbouslikhin/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

WSL Setup Guide

Step 1: Update WSL

wsl --update

Step 2: Install Ubuntu

wsl --install

Step 3: Install Development Dependencies

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

Step 4: Install Nix

Install Nix with the following command:

sh <(curl -L https://nixos.org/nix/install) --daemon

Test Nix Installation

Verify that Nix is installed correctly:

nix-shell -p nix-info --run "nix-info -m"

Step 5: Configure SSH

Copy your SSH keys from Windows:

cp -R /mnt/c/Users/<YourWindowsUsername>/.ssh/ ~/.ssh

Replace <YourWindowsUsername> with your actual Windows username.

Step 6: Clone Dotfiles Repository

Change to your home directory:

git clone git@github.com:zbouslikhin/dotfiles.git ~/

Step 7: Copy Dotfiles

Copy the configuration files:

cp -R dotfiles/config/ ~/.config

Step 8: Copy Configuration Files

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

Step 9: Update Nix Channels

Update Nix channels:

nix-channel --update

Step 10: Install Home Manager

Install Home Manager with the following command:

nix-env -iA nixpkgs.home-manager

Step 11: Activate Home Manager as a Flake

Activate Home Manager using the Flake configuration:

home-manager switch --flake ~/.config/home-manager#zaidb-wsl

Step 12: Set Zsh as Default Shell

Set Zsh as your default shell:

chsh -s /home/zaidb/.nix-profile/bin/zsh

Step 13: Install Python

asdf plugin-add python
asdf install python latest
asdf global python latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published