Personal macOS workstation configuration. mise installs the tools, deploys the dotfiles and applies the macOS settings. Lix is installed on its own for projects that ship a Nix dev shell, loaded through nix-direnv.
- macOS on Apple Silicon
- 1Password for Mac for commit signing and SSH, with Settings > Developer > Use the SSH Agent and Integrate with 1Password CLI enabled. The install runs without it and warns at the end.
curl -fsSL https://raw.githubusercontent.com/corrupt952/dotfiles/main/install.sh | bashTo read the script before running it:
curl -fsSLo install.sh https://raw.githubusercontent.com/corrupt952/dotfiles/main/install.sh
less install.sh
bash install.shThe script runs only once it has been downloaded in full. It:
- Checks for the Xcode Command Line Tools
- Installs mise to
~/.local/bin/miseand checks its Developer ID signature and notarization (and the installer's GPG signature whengpgis available) - Clones this repository to
~/Workspace/corrupt952/dotfilesand links~/.config/miseto it - Writes an empty
mise.local.toml(gitignored) for machine-local settings - Runs
mise bootstrap: tools, dotfiles, plugin repositories, macOS settings, the Nix gc and optimise agents - Installs Lix if it is missing
- Warns if 1Password for Mac is not installed
Run ./install.sh from the checkout to apply changes again.
mise.local.toml holds what differs per machine and stays out of git, such as the per-workspace Git identities and sallyport files, as inline [dotfiles] entries:
[dotfiles]
"~/.config/git/profiles/example" = { content = '''
[user]
email = "user@example.com"
name = "Example User"
''' }install.sh # bootstrap a new Mac, or re-apply on this one
mise.toml # global mise config: tools, env, dotfiles, bootstrap
mise.lock # pinned versions, URLs and checksums
modules/ # files deployed by [dotfiles], grouped by tool
Pushes run shellcheck, jactionlint, and zizmor, plus the tests for the Claude Code bash guard and the mise lock check; see .github/workflows/ci.yaml.