Managed with dotter.
Prepare the environment:
# macOS
curl -sSf -L https://install.lix.systems/lix | sh -s -- install
nix shell 'nixpkgs#git' 'nixpkgs#git-crypt' 'nixpkgs#dotter'# Windows
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install git git-crypt dotterClone the repository to ~/.dotfiles:
cd ~
git clone https://github.com/balthild/dotfiles .dotfiles
cd .dotfiles
git-crypt unlock ~/path/to/keyCreate ~/.dotfiles/.dotter/local.toml and specify the packages to be deployed:
# macOS
includes = [".dotter/macos.toml"]
packages = ["default"]# Windows
includes = [".dotter/windows.toml"]
packages = ["default"]Confirm what will be deployed:
dotter deploy --dry-run
# or shorter
dotter deploy -dDeploy:
dotter deployFirst-time installation:
nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/.dotfiles/nixCheck for changes:
darwin-rebuild build --dry-run --flake ~/.dotfiles/nix
# or the shell alias
nix-planApply changes:
darwin-rebuild -- switch --flake ~/.dotfiles/nix
# or the shell alias
nix-applySearch packages:
nix-search neovim# Windows
scoop install elvish starship carapace-binInstall the schema:
# Install with Rimeka
rimeka iDvel/rime-ice:others/recipes/full
# Install with /plum/
bash rime-install iDvel/rime-ice:others/recipes/fullWeasel 0.11+ has plum (rime-install) out of the box, located at 「输入法设定」 — 「获取更多输入方案」. After bootstrapping:
cd ~/AppData/Roaming/plum
./rime-install iDvel/rime-ice:others/recipes/fullInstall the model:
wget -O ~/Library/Rime/wanxiang-lts-zh-hans.gram https://github.com/amzxyz/RIME-LMDG/releases/download/LTS/wanxiang-lts-zh-hans.gram