feat(darwin): install CotEditor cask #12

Merged
hermes merged 1 commits from fm/dotfiles-coteditor-cask into main 2026-10-30 12:25:24 -04:00
Owner

Summary

Adds the coteditor Homebrew cask to homebrew.casks in configuration.nix, so nix-darwin installs CotEditor on the next rebuild. This is the established mechanism for GUI apps in this repo.

Change

  • configuration.nix: new entry "coteditor" in homebrew.casks, alphabetically after codex and before docker-desktop, matching the list's existing per-cask comment style.

Cask id check

brew info --cask coteditor resolves the cask:

coteditor (CotEditor): 7.1.2 (auto_updates)
CotEditor.app, /Applications/CotEditor.app/Contents/SharedSupport/bin/cot

So the id is one lowercase word: coteditor.

Validation (dry, no system mutation)

  1. Evaluation:
    nix eval --json .#darwinConfigurations.lt-mbp.config.homebrew.casks
    exit 0, output includes {"name":"coteditor","brewfileLine":"cask \"coteditor\", trusted: true"}.
  2. Dry build (build only, no switch):
    darwin-rebuild build --flake .#lt-mbp
    exit 0 with only the expected warning Git tree ... has uncommitted changes (the change was not committed at build time). Build output result/ was produced.
  3. Generated Brewfile from the built system closure:
    /nix/store/840kb19nkwni2n6a3p956h25lxmwidhn-Brewfile line 17:
    cask "coteditor", trusted: true

No live generation was switched and rebuild.sh was not run in apply mode.

How the captain applies it

After merge, from the primary checkout:

./rebuild.sh

rebuild.sh ends with exec sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp, so it needs sudo and the password prompt on this Mac. Homebrew activation then installs the coteditor cask. Note homebrew.onActivation.cleanup = "zap" is unchanged; coteditor is now declared, so a zap pass will keep it.

Risk

Low. One declarative cask line, validated by the dry build. The cask is auto_updates, so Homebrew will not fight the app's self-updater.

## Summary Adds the `coteditor` Homebrew cask to `homebrew.casks` in `configuration.nix`, so nix-darwin installs CotEditor on the next rebuild. This is the established mechanism for GUI apps in this repo. ## Change - `configuration.nix`: new entry `"coteditor"` in `homebrew.casks`, alphabetically after `codex` and before `docker-desktop`, matching the list's existing per-cask comment style. ## Cask id check `brew info --cask coteditor` resolves the cask: ``` coteditor (CotEditor): 7.1.2 (auto_updates) CotEditor.app, /Applications/CotEditor.app/Contents/SharedSupport/bin/cot ``` So the id is one lowercase word: `coteditor`. ## Validation (dry, no system mutation) 1. Evaluation: `nix eval --json .#darwinConfigurations.lt-mbp.config.homebrew.casks` exit 0, output includes `{"name":"coteditor","brewfileLine":"cask \"coteditor\", trusted: true"}`. 2. Dry build (build only, no switch): `darwin-rebuild build --flake .#lt-mbp` exit 0 with only the expected warning `Git tree ... has uncommitted changes` (the change was not committed at build time). Build output `result/` was produced. 3. Generated Brewfile from the built system closure: `/nix/store/840kb19nkwni2n6a3p956h25lxmwidhn-Brewfile` line 17: `cask "coteditor", trusted: true` No live generation was switched and `rebuild.sh` was not run in apply mode. ## How the captain applies it After merge, from the primary checkout: ``` ./rebuild.sh ``` `rebuild.sh` ends with `exec sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp`, so it needs `sudo` and the password prompt on this Mac. Homebrew activation then installs the coteditor cask. Note `homebrew.onActivation.cleanup = "zap"` is unchanged; coteditor is now declared, so a zap pass will keep it. ## Risk Low. One declarative cask line, validated by the dry build. The cask is `auto_updates`, so Homebrew will not fight the app's self-updater.
hermes added 1 commit 2026-10-30 12:00:31 -04:00
hermes merged commit baae0d960c into main 2026-10-30 12:25:24 -04:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: transnet/dotfiles#12