Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

dotfiles-windows

My Windows config, managed with chezmoi. One repo restores ~/.config, the PowerShell profile, home dotfiles, SSH/GPG keys and secrets (from Bitwarden), apps (scoop, winget, cargo, node, python) and the links/junctions the apps expect.

Layout

Path What
home/ chezmoi source state (.chezmoiroot), maps to ~
home/dot_config/ config copied into ~/.config
linked/ folders ~/.config/<name> is a junction to (edited live, so edits show up in git status here)
home/.chezmoidata/packages.yaml apps to install
home/.chezmoidata/links.yaml junctions to create
home/.chezmoiscripts/ install / setup scripts chezmoi runs
lib/Dotfiles.psm1 helpers the scripts use (tests in tests/, run Invoke-Pester tests)
scripts/ one-off tools: seed Bitwarden, draft package list, cutover, sandbox test

The source lives at ~/.local/share/chezmoi. chezmoi cd opens a shell there.

Fresh machine

  1. Download bootstrap.ps1 and run: powershell -ExecutionPolicy Bypass -File .\bootstrap.ps1 Run it from a normal (not elevated) window: it asks once, through UAC, to turn on Developer Mode, so winget links its apps instead of filling PATH.
  2. Sign in to GitHub and Bitwarden when asked; enter the Bitwarden master password once when chezmoi applies.
  3. Sign out and back in. Then re-login to Claude Code, Copilot, Docker and OneDrive.

Daily use

  • Linked folders (AutoHotKey, FlowLauncher, yasb, komorebi, wpm, claude, psmux, yazi, nvim, powershell, dotforge): edit in place, then chezmoi cd and git add/commit/push.
  • Copied files: chezmoi edit <file>, or edit the live file and run chezmoi re-add <file>. chezmoi diff shows what chezmoi apply would change.
  • Pull changes from another machine: chezmoi update.

Add an app

Add it to home/.chezmoidata/packages.yaml (scoop, winget user or elevated, cargo, node.npm, python, pipx, uvtools, pwsh), then chezmoi apply. The installer only installs what's missing and never uninstalls.

Add a secret

Add a field or attachment to an item in the Bitwarden dotfiles folder (ssh-keys, gpg-signing-key, env, flow-github), then reference it from a template (bitwardenFields, bitwardenAttachment). Never commit secret values; the pre-commit hook runs gitleaks.

Add a linked folder

Move the folder into linked/<name>, add a ~/.config/<name> entry to home/.chezmoidata/links.yaml, then chezmoi apply.

Before wiping this machine

  • chezmoi status is empty, and git status in the source is clean and pushed
  • Bitwarden dotfiles folder has ssh-keys, gpg-signing-key, env, flow-github
  • New keys or tokens since the last seed are in Bitwarden (scripts/seed-bitwarden.ps1 updates attachments)
  • ~/dotfiles-backup-* copied to offline media
  • Anything outside this repo you care about (Documents, Downloads, browser profiles) is backed up

Related

This repo is the hub: the projects below are either used by it or published from it.

  • w11dwm-config: The keyboard-driven tiling desktop (komorebi, AutoHotkey, yasb, Flow Launcher, wpm), copied out of dotfiles-windows to share and discuss. Its key bindings, app launcher and window switcher are built on Legend.ahk.
  • catelier: A Catppuccin theme for the yasb status bar, in all four flavors with your choice of accent. It's the bar in w11dwm-config and dotfiles-windows.
  • zenppuccin: A Catppuccin theme for Zen Browser, in all four flavors with your choice of accent and optional translucency.
  • Legend.ahk: An AutoHotkey v2 library: an Alt+/ overlay of the shortcuts for the app you're in, which-key style chord menus, pickers and a window switcher. It runs the keys in w11dwm-config and dotfiles-windows.
  • DotForge: A PowerShell module that installs and configures command-line tools: XDG paths, fzf pickers, completions, shell hooks. The PowerShell profile in dotfiles-windows loads it, and it sets up Starship to read the starship-p9cat config.
  • starship-p9cat: A Starship prompt in the powerlevel9k style, in Catppuccin colors. It's the prompt in dotfiles-windows, and a port of the CatPow theme from poshcat.omp.
  • poshcat.omp: Catppuccin themes for Oh My Posh, including CatPow, a powerlevel10k-style theme. It was my prompt before Starship; starship-p9cat carries CatPow over.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages