projects

dotfiles

My configuration files

feat: updated readme and tangled mirror

daniel daum committed parent 8caa493 commit 161287cSigned, not verified

SignedGitea couldn't verify the signature.

Showing 3 changed files with 69 additions and 37 deletions.

.gitea/workflows/mirror.yamladded +39 โˆ’0
@@ -0,0 +1,39 @@1name: mirror2on:3    push:4        branches: [main]5    workflow_dispatch:67env:8    TANGLED_SSH_PORT: "2222"9    TANGLED_REMOTE: "ssh://git@knot.danieldaum.net:2222/danieldaum.net/dotfiles"1011jobs:12    mirror:13        runs-on: ubuntu-latest14        steps:15            - name: Checkout16              uses: actions/checkout@v417              with:18                  fetch-depth: 01920            - name: Push to GitHub21              run: |22                  git remote add github https://x-access-token:${{ secrets.GH_MIRROR_TOKEN }}@github.com/daniel-daum/dotfiles.git23                  git push github main --force24                  git push github --tags --force2526            - name: Set up SSH for Tangled27              run: |28                  mkdir -p ~/.ssh && chmod 700 ~/.ssh29                  printf '%s\n' "${{ secrets.TANGLED_SSH_KEY }}" > ~/.ssh/tangled_ci30                  chmod 600 ~/.ssh/tangled_ci31                  ssh-keyscan -t ed25519 -p "$TANGLED_SSH_PORT" knot.danieldaum.net >> ~/.ssh/known_hosts3233            - name: Push to Tangled34              env:35                  GIT_SSH_COMMAND: ssh -i ~/.ssh/tangled_ci -o IdentitiesOnly=yes -o UserKnownHostsFile=~/.ssh/known_hosts36              run: |37                  git remote add tangled "$TANGLED_REMOTE"38                  git push tangled main --force39                  git push tangled --tags --force
.tangled/workflows/mirror.ymldeleted +0 โˆ’36
@@ -1,36 +0,0 @@1# .tangled/workflows/mirror-to-github.yml23when:4  - event: ["push", "manual"]5    branch: ["main"]67engine: "nixery"89clone:10  depth: 01112dependencies:13  nixpkgs:14    - git1516steps:17  - name: "Mirror to GitHub"18    command: |19      git fetch --unshallow origin || true20      git fetch origin refs/heads/main:refs/heads/main21      git remote add github https://x-access-token:${GITHUB_PAT}@github.com/${GITHUB_USERNAME}/${GITHUB_REPO_NAME}.git22      git push github refs/heads/main:refs/heads/main --force23    environment:24      GITHUB_USERNAME: "daniel-daum"25      GITHUB_REPO_NAME: "dotfiles"2627  - name: "Mirror to Gitea"28    command: |29      git fetch --unshallow origin || true30      git fetch origin refs/heads/main:refs/heads/main31      git remote add gitea https://${GITEA_USERNAME}:${GITEA_TOKEN}@${GITEA_HOST}/${GITEA_USERNAME}/${GITEA_REPO_NAME}.git32      git push gitea refs/heads/main:refs/heads/main --force33    environment:34      GITEA_USERNAME: "daniel-daum"35      GITEA_REPO_NAME: "dotfiles"36      GITEA_HOST: "git.danieldaum.net"
README.md +30 โˆ’1
@@ -1,3 +1,32 @@11# dotfiles223my personal dotfiles3Personal config for my macOS and Linux (OrbStack) machines: shell, editor, terminal, VCS, and toolchain setup.45## Notable choices67- **[Jujutsu (jj)](https://jj-vcs.github.io/jj/)** as the daily VCS, backed by git. Commits are SSH-signed at push time via [Secretive](https://github.com/maxgoedjen/secretive) (secure enclave-backed SSH keys), verified against `~/.gitallowedsigners`.8- **[mise](https://mise.jdx.dev/)** manages language runtimes and CLI tool versions.9- **[difftastic](https://difftastic.wilfred.me.uk/)** (structural diffs) and **[delta](https://github.com/dandavison/delta)** (syntax highlighting) for diffs in both git and jj.10- Primary repo lives on a self-hosted [Gitea](https://about.gitea.com/) instance (`git.danieldaum.net`). A CI job (`.gitea/workflows/mirror.yaml`) mirrors `main` to GitHub and [Tangled](https://tangled.sh/) on push.11- Linux dev machine is an OrbStack VM (`mustafar`), provisioned via the steps in `mustafar.txt`.1213## Layout1415| File | Purpose |16| --- | --- |17| `.zshrc`, `.bashrc` | Shell config: `mise` activation, `eza`/`bat` aliases |18| `.zsh_plugins.txt` | Zsh plugin list for [antidote](https://getantidote.github.io/) |19| `.gitconfig` | Git config, delta pager, difftastic diff tool, SSH commit signing |20| `jj.config.toml` | Jujutsu config, mirrors git identity/signing, custom log template and aliases |21| `ssh.config` | SSH client config for local VMs and remote hosts |22| `Brewfile` | macOS packages/casks (`brew bundle`) |23| `mise.config.toml`, `mise.config.lock` | Toolchain versions managed by mise |24| `zed.settings.json`, `zed.keymap.json`, `zed_extensions.txt` | [Zed](https://zed.dev/) editor config |25| `warp.settings.toml` | [Warp](https://www.warp.dev/) terminal config |26| `init.txt` | macOS bootstrap: Xcode CLT, Rosetta, Homebrew |27| `mustafar.txt` | Linux VM bootstrap: packages, mise, config sync |28| `.gitea/workflows/mirror.yaml` | CI: mirrors this repo to GitHub and Tangled |2930## Usage3132`init.txt` and `mustafar.txt` are step-by-step notes for bootstrapping a new macOS machine or Linux VM. The rest are config files meant to be symlinked or copied into place by hand.