My personal dotfiles used on the various personal and work systems https://snowboardtechie.com
  • Python 68%
  • Shell 22.4%
  • TypeScript 6.9%
  • Lua 0.9%
  • JavaScript 0.7%
  • Other 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-30 15:06:11 -08:00
.agents/skills/verify Read the pstack pin from its renamed record 2026-11-17 10:00:53 -08:00
dot-agents docs(teammate-pr-review): omit optional comments on outside contributor PRs 2026-11-30 15:06:11 -08:00
dot-claude Read Bryan's personal schedule from iCloud, never his work Google Calendar 2026-11-20 23:02:47 -08:00
dot-config feat(shell): pi-update updates Pi and its packages, then restarts the running bots 2026-11-30 08:55:15 -08:00
dot-git-hooks Apply glossary round three to setup and sources 2026-11-17 09:46:53 -08:00
dot-gnupg gpg-agent: bump cache TTL to 400 days 2026-04-24 14:12:23 -07:00
dot-pi/agent Find the Rex session through REX_BLOCK in pi-rex 2026-11-30 09:05:04 -08:00
hermes Make Pi the default sub-agent worker 2026-11-10 09:11:13 -08:00
omarchy Apply glossary round three to setup and sources 2026-11-17 09:46:53 -08:00
scripts Read Bryan's personal schedule from iCloud, never his work Google Calendar 2026-11-20 23:02:47 -08:00
tests Find the Rex session through REX_BLOCK in pi-rex 2026-11-30 09:05:04 -08:00
zsa-keyboard-layouts update for working with nix darwin 2025-10-28 14:35:03 -07:00
.gitattributes Stop tracking binary and machine-specific files 2026-02-23 12:06:01 -08:00
.gitignore Apply glossary round three to setup and sources 2026-11-17 09:46:53 -08:00
.stow-local-ignore Add a verification skill for the setup scripts 2026-11-16 17:32:21 -08:00
AGENTS.md Find the Rex session through REX_BLOCK in pi-rex 2026-11-30 09:05:04 -08:00
dot-finicky.js Route agile6.workers.dev previews to Vivaldi in Finicky 2026-11-19 13:39:18 -08:00
dot-gitconfig feat: restore Gnarbox workstation integrations 2026-09-26 00:11:04 -07:00
dot-p10k.zsh reset and cleanup mess from merging dotfiles 2025-10-28 17:22:55 -07:00
dot-zshrc zsh: source powerlevel10k from Intel Homebrew prefix (/usr/local) 2026-07-12 08:52:39 -07:00
README.md Apply glossary round three to setup and sources 2026-11-17 09:46:53 -08:00
setup-platform-configs.sh Apply glossary round three to setup and sources 2026-11-17 09:46:53 -08:00

Dotfiles

Personal development environment configuration.

Two deployment models are supported:

  • Full workstation ownership (macOS, NixOS): GNU Stow symlinks the whole environment: shell, terminal, editor, Git, GPG, and agent tooling.
  • Additive assets (Omarchy): the OS already owns the desktop and development environment; only curated personal integrations are linked in. See Omarchy Installation.

Overview

This repository contains dotfiles organized into Stow packages for easy symlinking and management. Configurations are split between:

  • ~/ (home directory) for traditional dotfiles
  • ~/.config/ for XDG-compliant applications

Prerequisites

Required

  • GNU Stow - Symlink manager for dotfiles

Platform-Specific Setup

macOS

Option A: Using Nix-Darwin (Recommended)

If you're using nix-configs:

  • All dependencies (Powerlevel10k, zsh plugins, tools, fonts, etc.) are installed via nix-darwin configuration
  • GNU Stow is included in the nix configuration

Option B: Using Homebrew

  1. Install Homebrew:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Install dependencies:

    brew install stow
    brew install powerlevel10k zsh-autosuggestions zsh-syntax-highlighting
    brew install bat eza fzf direnv
    brew install neovim git gnupg
    brew install --cask font-meslo-lg-nerd-font
    

NixOS

Option A: Using Nix Flakes (Recommended)

If you're using nix-configs:

  • All dependencies (Powerlevel10k, zsh plugins, tools, fonts, etc.) are installed via NixOS configuration
  • GNU Stow is included in the nix configuration

Option B: Manual System Configuration

Add the following packages to your configuration.nix:

environment.systemPackages = with pkgs; [
  stow
  zsh-powerlevel10k
  zsh-autosuggestions
  zsh-syntax-highlighting
  bat
  eza
  fzf
  direnv
  (nerdfonts.override { fonts = [ "Meslo" ]; })
  neovim
  git
  gnupg
  pinentry-curses  # or pinentry-gnome3, pinentry-qt
];

Note: Some configurations may need local overrides:

  • ~/.gnupg/gpg-agent.conf - Set correct pinentry program path for your system

Installation

Full Workstation Installation (macOS / NixOS)

From this repository's root directory:

stow . --dotfiles --target $HOME
./setup-platform-configs.sh

This symlinks the dotfiles, removes retired tmux links, and sets up the secrets directory.

On the freshly reinstalled Gnarbox, switch to the gnarbox NixOS flake first so Git, Stow, Zsh and the CLI tools exist. Clone this repository into ~/code/dotfiles. Do not use the generic Stow command above on Gnarbox: its macOS GPG pinentry and Claude hooks are not portable, and Gnarbox uses Pi instead of OpenCode. Review the preflight and resolve any other collisions without --adopt, then apply the same selection:

cd ~/code/dotfiles
stow -n -v --ignore='dot-gnupg$' --ignore='dot-claude$' --ignore='opencode$' . --dotfiles --target "$HOME"
stow --ignore='dot-gnupg$' --ignore='dot-claude$' --ignore='opencode$' . --dotfiles --target "$HOME"
./setup-platform-configs.sh

setup-platform-configs.sh still links curated Claude/Hermes/Pi skills and retires OpenCode links into the skill pool on Gnarbox; it does not deploy Studio's Mac-only Claude settings, start a second Hermes gateway, or copy credentials. update-system and upgrade-system detect gnarbox and use nixos-rebuild.

Additional Manual Step:

GPG configuration (macOS only) - Link GPG agent config:

ln -s ~/code/dotfiles/dot-gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf

That tracked file uses pinentry-mac; do not link it on Gnarbox. Use a machine-local pinentry-gnome3 configuration if GPG signing is enabled there.

Omarchy Installation (Additive Only)

Omarchy ships its own coherent Bash, Foot, Neovim, Git, and GPG configuration. Do not run stow . or stow --adopt on an Omarchy machine:

  • stow . conflicts with files Omarchy already owns and, where it would succeed, shadows Omarchy's XDG configs (e.g. ~/.gitconfig over ~/.config/git/config) with macOS/Nix-oriented settings.
  • stow --adopt is worse: it moves Omarchy's live configuration files into this repository, corrupting both.

Use the dedicated additive setup entry point instead:

./scripts/setup-omarchy.sh --check   # report what would change; mutates nothing
./scripts/setup-omarchy.sh --apply   # perform the additive setup

What it changes: per-tool symlinks for curated personal agent skills in ~/.claude/skills, ~/.config/opencode/skills, ~/.pi/agent/skills, and ~/.hermes/skills/personal, plus one marked source line appended to an existing ~/.bashrc (Omarchy's designated personal-additions section) that loads the portable aliases from dot-config/shell/aliases.sh, a separate guarded Ble.sh source hook that becomes active when the blesh package is installed, a repository-owned shell service that suspends after 45 minutes while honoring Stay Awake and idle inhibitors, and a cleanup that removes only the retired Hindsight / context-mode / claude-mem entries from Claude, Pi, and OpenCode settings. It does not install packages or replace unrelated Omarchy-owned application configuration.

What it intentionally leaves untouched: login shell selection, terminal, Neovim, Git, GPG, OpenCode/Claude settings, installed packages, and everything under /usr/share/omarchy. Omarchy-provided skill links (e.g. omarchy, diagnose-crash) are preserved as-is.

Always run --check and review the report before running --apply.

Initial Migration (Existing Dotfiles)

If you're setting up this repo for the first time and want to migrate existing dotfiles:

stow . --adopt --dotfiles --target $HOME

The --adopt flag will move any existing files in your home directory into the dotfiles repo. After adoption, review the changes and commit only the files you want to manage.

Warning: Be careful with --adopt as it will move existing files into the repo. Review changes before committing. Never use --adopt on an Omarchy machine — it moves Omarchy-owned configuration into the repository.

Structure

dotfiles/
├── dot-config/          # XDG config directory (~/.config/)
│   ├── direnv/          # Direnv configuration with nix-direnv
│   ├── nvim/            # Neovim configuration (Lazy.nvim)
│   ├── opencode/        # OpenCode AI assistant
│   │   ├── AGENTS.md            # Global agent instructions
│   │   └── opencode.json        # Provider and model configuration
│   └── zsh/             # Modular zsh configuration (~/.config/zsh/)
│       ├── aliases.zsh      # All aliases (git, tools, nix, navigation)
│       ├── env.zsh          # Environment variables
│       ├── functions.zsh    # Custom shell functions (worktree helpers, etc.)
│       ├── options.zsh      # Zsh options, vi-mode, completion styles
│       └── plugins.zsh      # Cross-platform plugin loading
├── dot-gnupg/           # GPG configuration (~/.gnupg/)
│   └── gpg-agent.conf   # GPG agent settings
├── hermes/              # Curated Hermes skills, scripts, and scheduled job definitions
├── omarchy/              # Additive personal Omarchy shell plugins (never stowed)
├── scripts/              # Repo-internal deployment scripts (never stowed)
│   ├── reconcile-agent-skills.sh  # Skill curation + per-harness linking
│   └── setup-omarchy.sh           # Additive Omarchy setup entry point
├── tests/               # Integration tests for the deployment scripts
├── dot-gitconfig        # Git configuration (~/.gitconfig)
├── dot-gitconfig.local  # Git signing key (~/.gitconfig.local, not tracked)
├── dot-zshrc            # Zsh shell loader (~/.zshrc) - sources modular configs
├── dot-p10k.zsh         # Powerlevel10k theme (~/.p10k.zsh)
└── zsa-keyboard-layouts/  # ZSA keyboard firmware

Managed Configurations

Shell (Zsh)

  • Powerlevel10k theme (no Oh My Zsh)
  • Plugins: zsh-autosuggestions, zsh-syntax-highlighting
  • Direnv integration for per-project environments
  • Modular configuration in ~/.config/zsh/:
    • aliases.zsh - Git, tools (bat/eza/nvim), navigation
    • functions.zsh - Git, Obsidian, and host-guarded Nix update/upgrade helpers
    • env.zsh - EDITOR, GPG_TTY, paths, NODE_OPTIONS
    • options.zsh - setopt, vi-mode, completion styles
    • plugins.zsh - Cross-platform plugin loading, direnv
  • update-<host> and upgrade-<host> identify the current machine, refuse a mismatched target, and require confirmation before rebuilding. On a matching machine, Enter accepts the default; n cancels. Upgrade commands update flake.lock only after the host check and confirmation.

Editor (Neovim)

  • Lazy.nvim plugin manager
  • Custom keybindings and plugins
  • LSP and completion setup

Version Control (Git)

  • GPG signing enabled
  • Global gitignore for .envrc and .direnv/
  • Signing key stored in ~/.gitconfig.local (not tracked in git)
  • On a fresh machine without the existing GPG signing key, put the personal email and commit.gpgsign = false in ~/.gitconfig.local until the key is restored. The machine-local include comes last so it overrides the default; do not copy private keys through Git or commit this file.

GPG

  • GPG agent configuration for password caching
  • pinentry-mac for GUI password prompts
  • Cache TTL settings (10 min default, 2 hour max)

Tools

  • direnv: Automatic environment switching with nix-direnv for fast Nix shell caching

AI / OpenCode

  • OpenCode remains configured on machines that install it; Gnarbox uses Pi instead.
  • Config lives in dot-config/opencode/opencode.json (tracked, stowed to ~/.config/opencode/)
  • The default local model provider connects directly to Studio Ollama over Tailscale at http://100.121.238.48:11434/v1
  • The Ollama endpoint is available only inside the tailnet and does not require an API key
  • plugins/ollama-models.js refreshes the provider's model inventory from Studio whenever OpenCode starts
  • For repo-specific tweaks (extra docs, different permissions, etc.), create .opencode/project.json inside the repo

AI / Pi on Gnarbox

  • The NixOS CLI feature installs pi-coding-agent from the pinned Nixpkgs source build rather than OpenCode. Shared Pi model definitions in dot-pi/agent/models.json expose Studio Ollama's current models over the tailnet. The apiKey value is a dummy because Ollama ignores authentication; no credential is committed.
  • Gnarbox's app-owned ~/.pi/agent/settings.json selects its startup model. It is not stowed, so this shared model catalog does not change Pi defaults on other machines; use Pi's /model to change the selection.
  • Pi also supports the ChatGPT Codex subscription directly: run /login and choose ChatGPT Plus/Pro (Codex), then select an openai-codex model with /model. The OAuth credential is machine-local in ~/.pi/agent/auth.json (mode 0600), not tracked or shared with Hermes; no standalone Codex CLI is required. Verify with pi auth check --provider openai-codex --json and one small real request through that provider.

AI / Hermes

  • hermes/ preserves authored local skills, automation scripts, and declarative scheduled job definitions.
  • ~/.hermes remains a real local runtime directory; it is intentionally not stowed because it contains credentials, databases, sessions, logs, caches, and Matrix encryption state.
  • setup-platform-configs.sh installs only manifest-listed assets on Studio, compiles native helpers locally, and reconciles named scheduled jobs through Hermes's cron API.
  • Built-in Hermes skills come from the Hermes installation rather than being copied into dotfiles.
  • See hermes/README.md for the managed boundary and restore process.

Updating Configurations

After modifying any dotfiles:

  1. Changes are automatically reflected (symlinks point to this repo)
  2. For shell changes: source ~/.zshrc

Uninstalling

To remove symlinks:

cd ~/code/dotfiles
stow -D . --dotfiles --target $HOME

Cross-Platform Compatibility

These dotfiles are designed to work on both macOS and NixOS with minimal platform-specific configuration.

How It Works

Shell configuration (dot-zshrc) uses a "source if exists" pattern that checks multiple paths:

  • macOS (Homebrew): /opt/homebrew/share/...
  • NixOS (system): /run/current-system/sw/share/...
  • Linux (standard): /usr/share/...

Platform-Specific Settings

Some settings require platform-specific handling:

  1. SSH Keychain (macOS only) - dot-zshrc conditionally aliases SSH to use macOS keychain support
  2. GPG Pinentry - dot-gnupg/gpg-agent.conf defaults to macOS pinentry-mac; NixOS users should override locally

NixOS-Specific Notes

On NixOS, you may want to create local overrides for:

# Override GPG pinentry for NixOS
echo "pinentry-program /run/current-system/sw/bin/pinentry-curses" > ~/.gnupg/gpg-agent.conf.local

Or manage these via your NixOS system configuration.

  • nix-configs - Nix system configuration for both macOS and NixOS
    • macOS: nix-darwin with declarative Homebrew package management
    • NixOS: System configuration with flakes
    • Per-project development environment shells (via flakes + direnv)
    • System settings and package management

2 gits, one repo

The primary repository is at git.snowboardtechie.com, with a push mirror on GitHub.

Notes

  • Stow uses relative symlinks by default
  • The --dotfiles flag converts dot- prefix to . for files/folders
  • ZSA keyboard layouts are stored but not symlinked
  • AGENTS.md is ignored by Stow via .stow-local-ignore to prevent symlinking documentation to the home directory
  • Repository files are ignored: .git, README.md, .gitignore, and .stow-local-ignore are excluded via .stow-local-ignore to prevent symlinking repository metadata
  • GPG config files require manual symlinking: Since ~/.gnupg/ contains sensitive unmanaged files (private keys, trustdb, sockets), stow cannot symlink the entire directory. Individual config files must be manually symlinked after running stow.
  • Package management: Dependencies managed via nix-configs for both macOS (nix-darwin) and NixOS (system configuration), or manually via Homebrew on macOS