Configuration
Settings live in ~/.config/42space/config.toml. Only overrides go there;
everything else uses the defaults below. Run 42space sync after editing.
[restore]
| Key | Default | Meaning |
|---|---|---|
on_login | "background" | what a new or out-of-date machine does when a shell starts: background restores and prints a notice, notify only prints a hint, off does nothing |
parallel_downloads | 4 | downloads run at the same time |
retry_minutes | 10 | minimum time between automatic restore attempts |
[remote]
| Key | Default | Meaning |
|---|---|---|
auto_commit | true | commit every change to the environment repo |
auto_push | false | push after every commit |
Toggle them with 42space remote auto-commit on|off and
42space remote auto-push on|off.
[observe]
| Key | Default | Meaning |
|---|---|---|
background_scan | true | look for untracked changes in the background |
scan_interval_h | 6 | hours between background scans |
shell_hook | true | record install-like commands for the journal |
[storage]
| Key | Default | Meaning |
|---|---|---|
home_warn_pct | 80 | HOME usage that doctor warns about |
home_block_pct | 95 | HOME usage that doctor reports as a failure |
[policies]
Policies point caches and prefixes at goinfre. Each has enabled, env and
optionally path:
| Policy | Default | Sets |
|---|---|---|
npm | on | NPM_CONFIG_CACHE, NPM_CONFIG_PREFIX, PATH |
pnpm | on | pnpm_config_store_dir, npm_config_store_dir |
corepack | on | COREPACK_HOME |
uv | on | UV_CACHE_DIR, UV_PYTHON_INSTALL_DIR, UV_TOOL_DIR, UV_TOOL_BIN_DIR, PATH |
pip | on | PIP_CACHE_DIR |
go | on | GOMODCACHE, GOCACHE |
xdg-cache | off | XDG_CACHE_HOME (a big HOME saver) |
[policies.xdg-cache]
enabled = true
[policies.go]
enabled = false
env.toml
Managed variables and PATH entries live in ~/.config/42space/env.toml,
written by 42space env and 42space path:
path = ["{home}/scripts"]
[vars]
EDITOR = "nvim"