Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.43 KB

README.md

File metadata and controls

62 lines (42 loc) · 1.43 KB

dotfiles

WSL2

In powershell:

wsl --install # if not already installed
# Check for new releases at https://github.com/nix-community/NixOS-WSL/releases
Invoke-WebRequest -Uri "https://github.com/nix-community/NixOS-WSL/releases/download/2311.5.3/nixos-wsl.tar.gz" -OutFile "nixos-wsl.tar.gz"
wsl --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz
wsl -d NixOS

In NixOS shell:

sudo nix-channel --update && sudo nixos-rebuild switch && nix-shell -p git --run "git clone https://github.com/michalmatoga/dotfiles.git ~/ghq/github.com/michalmatoga/dotfiles && ./ghq/github.com/michalmatoga/dotfiles/scripts/init.sh"

Hacks

After first running nvim and installing plugins with Lazy, run:

ln -s `which lua-language-server` ~/.local/share/nvim/mason/bin/lua-language-server

To fix Lua LSP. To edit alacritty config:

./.config/alacritty.toml

Komorebi windows tiling manager

komorebic start --whkd
komorebic stop --whkd
# komorebi config
./.config/komorebi.json

# hotkeys config
./.config/whkdrc

Updating NixOS

# 1. Check the latest stable channel at https://status.nixos.org/
sudo nix-channel --add https://channels.nixos.org/nixos-24.11 nixos
sudo nixos-rebuild switch --upgrade

Reference: https://superuser.com/questions/1604694/how-to-update-every-package-on-nixos