Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ apps, Fastmail, and 1Password: the app, its CLI, and the SSH agent and commit
signing the app provides. `personal` and `work` both set up my two 1Password
accounts, but choose different defaults for `FNOX_PROFILE` and `OP_ACCOUNT`.
They rely on the 1Password app, so select them only alongside `desktop`.
`cachyos` adds packages from the CachyOS repositories and removes some bundled
packages that this setup replaces. `restricted` suits managed machines with
limits on what you can install or sync. Select it on its own, in place of
`desktop`: on macOS it adds only Ghostty, Obsidian, Zen, and the Fira Code font
to the base packages, and it switches history sync to manual.
`personal` also clones my private homelab repository to `~/homelab`. `cachyos`
adds packages from the CachyOS repositories and removes some bundled packages
that this setup replaces. `restricted` suits managed machines with limits on
what you can install or sync. Select it on its own, in place of `desktop`: on
macOS it adds only Ghostty, Obsidian, Zen, and the Fira Code font to the base
packages, and it switches history sync to manual.

This file stays on the machine and applies to mise in other projects too. Use
`-E` to
Expand All @@ -148,7 +149,10 @@ Choose one of the methods below. If you have shared history to restore, use
You don't need to sign in to 1Password just to apply the dotfiles; the
`personal` and `work` setup tasks ask you to sign in when needed. Before they
run, sign in to the 1Password app and turn on **Integrate with 1Password CLI**
and **Integrate with MCP clients** in its Developer settings.
and **Integrate with MCP clients** in its Developer settings. On a `personal`
machine, sign in to GitHub first, as in
[Restore from history](#restore-from-history), so bootstrap can clone the
private homelab repository.

#### Direct mise setup

Expand Down Expand Up @@ -203,11 +207,15 @@ git clone https://github.com/nettlesh/dotfiles.git ~/.dotfiles
cd ~
mise x gh -- gh auth login --hostname github.com --git-protocol https --web
GIT_CONFIG_GLOBAL="$HOME/.gitconfig" \
GH_PATH="$HOME/.local/share/mise/shims/gh" \
mise x gh -- gh auth setup-git --hostname github.com
mise bootstrap \
--adopt https://github.com/YOUR-USER/dotfiles-history.git --only dotfiles
```

`GH_PATH` makes Git's credential helper call gh through its mise shim rather
than one installed version's path, so it keeps working after gh updates.

This uses mise's
[history adoption workflow](https://mise.jdx.dev/bootstrap/setup.html#set-up-another-machine)
to restore tracked files to their original paths under your home directory.
Expand Down Expand Up @@ -350,6 +358,7 @@ After setup, sign in to GitHub and configure its Git credential helper:
```sh
mise x gh -- gh auth login --hostname github.com --git-protocol https --web
GIT_CONFIG_GLOBAL="$HOME/.gitconfig" \
GH_PATH="$HOME/.local/share/mise/shims/gh" \
mise x gh -- gh auth setup-git --hostname github.com
```

Expand Down
4 changes: 4 additions & 0 deletions mise.personal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
FNOX_PROFILE = "personal"
OP_ACCOUNT = "{{ vars.op_personal_account }}"

# Cloned before dotfiles deploy the 1Password SSH config, so this uses HTTPS
[bootstrap.repos]
"~/homelab" = { url = "https://github.com/nettlesh/homelab.git" }

[bootstrap.hooks.post-dotfiles]
run = '"{{ mise_bin }}" set --file "{{ xdg_config_home }}/mise/config.local.toml" FNOX_PROFILE=personal OP_ACCOUNT={{ vars.op_personal_account | quote }}'

Expand Down
Loading