Skip to content
balthildPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Balthild's dotfiles

Managed with dotter.

Deploy

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 dotter

Clone the repository to ~/.dotfiles:

git clone https://github.com/balthild/dotfiles ~/.dotfiles
cd ~/.dotfiles

Unlock the encrypted files:

op read "op://Personal/dotfiles/dotfiles" --no-newline | git-crypt unlock /dev/stdin
# or with key file
git-crypt unlock ~/path/to/key

Create ~/.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 -d

Deploy:

dotter deploy

Remarks

Nix

First-time installation:

nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/.dotfiles

Check for changes:

darwin-rebuild build --dry-run --flake ~/.dotfiles
# or the shell alias
nix-plan

Apply changes:

darwin-rebuild -- switch --flake ~/.dotfiles
# or the shell alias
nix-apply

Search packages:

nix-search helix

WSL

Shell

# Windows
scoop install elvish starship carapace-bin

Rime

Install the schema:

rimeka iDvel/rime-ice:others/recipes/full

Install 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages