Skip to content

Latest commit

 

History

History
190 lines (131 loc) · 3.54 KB

README.md

File metadata and controls

190 lines (131 loc) · 3.54 KB

Install intellij idea

Manually downloading from web myself.

Install fonts

Download this, extract and move into C:\Windows\Fonts manually.

https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/CascadiaCode.zip

Kmonad

Install git + stack + ghcup

  1. git
  2. stack, ghcup for kmonad compilation
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
scoop install git stack ghcup

Install ghc

ghcup install ghc

Compile

mkdir -p /c/sources/
cd /c/sources
git clone [email protected]:ryantam626/kmonad.git
cd kmonad
stack install

Get ssh key from somewhere

ssh-keygen or just reuse some key.

mkdir ~/.ssh
vim ~/.ssh/id_ed25519
vim ~/.ssh/id_ed25519.pub
chmod 600 ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub

Clone this repo

cd /c/sources
git clone [email protected]:ryantam626/windows-rice.git

Making shortcut for program

cmd.exe /k  kmonad.exe C:\sources\windows-rice\windows-dotfiles\kmonad\regular-keyboard.kbd -l info

Mado

Install pyenv

Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"

Install python

pyenv update
pyenv install 3.11.9
pyenv global 3.11.9

Install poetry

curl -sSL https://install.python-poetry.org | python3 -

Clone

cd /c/sources
git clone [email protected]:ryantam626/mado.git
cd mado/mado-py
$HOME/AppData/Roaming/Python/Scripts/poetry.exe shell
$HOME/AppData/Roaming/Python/Scripts/poetry.exe install

Making shortcut for program

JUST AN EXAMPLE - you might need to fix the path.

C:\Windows\System32\cmd.exe /k C:\Users\ryant\AppData\Local\pypoetry\Cache\virtualenvs\mado-4nSdn9uw-py3.11\Scripts\mado-run.cmd

Window terminal

Get it from https://aka.ms/terminal.

Install WSL Ubuntu

wsl.exe --install -d Ubuntu-24.04

Reboot afterwards.

Install Nix on Ubuntu

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

Then restart WSL shell to pick it up in shell.

Enable flake support

nixconf=~/.config/nix/nix.conf
mkdir -p $(dirname $nixconf)
echo "experimental-features = nix-command flakes" > $nixconf

Install Home Manager

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

Use home manager to configure ubuntu

Clone ssh keys over from windows

windows_user_name=ryant
windows_ssh_dir=/mnt/c/Users/$windows_user_name/.ssh
cp -r $windows_ssh_dir ~
sudo chown $USER ~/.ssh/id*
sudo chown 600 ~/.ssh/id*

Clone this repo

git clone [email protected]:ryantam626/windows-rice.git

Switch home manager config

cd windows-rice/ubuntu-home-manager
home-manager switch --flake .#rtam

Install some additional softwares

~/windows-rice/installers/docker.sh
~/windows-rice/installers/pyenv.sh

Manually switch login shell

home manager cannot manage this for us.

command -v zsh | sudo tee -a /etc/shells
sudo chsh -s "$(command -v zsh)" "${USER}"

Restart shell after.

Set windows terminal config

See windows-dotfiles/windows-terminal.json and copy and paste that into terminal config.

Other manual configuration

See imgs dir.

Ideavimrc on windows

Copy and paste the .ideavimrc from WSL root to windows root.