feat: migrate from homebrew to nix with home-manager#129
Draft
feat: migrate from homebrew to nix with home-manager#129
Conversation
Move all CLI tools from Homebrew to a declarative Nix home-manager configuration (flake.nix + home.nix). Homebrew is retained solely for GUI / cask applications (browsers, fonts, desktop apps). - Add flake.nix with multi-platform home-manager support - Add home.nix declaring all CLI packages previously in .brew - Slim down .brew to GUI / cask-only installs - Update Makefile with run-nix target and stow ignores - Update .profile and .bashrc to source Nix paths - Update .gitignore for Nix build artifacts - Update README.md with Nix installation and usage docs Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.com> Agent-Logs-Url: https://github.com/bdossantos/dotfiles/sessions/839644e4-65a7-4221-aa3c-fdc6dbf749bd
- Quote --proto flag in Makefile echo text for clarity - Convert update alias to a function with proper command checks Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.com> Agent-Logs-Url: https://github.com/bdossantos/dotfiles/sessions/839644e4-65a7-4221-aa3c-fdc6dbf749bd
Copilot created this pull request from a session on behalf of
bdossantos
March 26, 2026 10:04
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate CLI tooling from Homebrew to declarative Nix home-manager. Homebrew retained solely for GUI/cask apps per the recommended approach.
New files
flake.nix— Multi-platform home-manager flake (aarch64-darwin,x86_64-darwin,x86_64-linux,aarch64-linux)home.nix— All CLI packages declared here (~80 packages migrated from.brew).brew→ casks onlyStripped all CLI formulae. What remains: 1password, Firefox, Chrome, Ghostty, Spotify, VLC, fonts, gcloud-cli, and other GUI apps.
Shell integration
.profile— Sources nix-daemon profile, prepends~/.nix-profile/bintoPATH, adds Nix man pages.bashrc— Sourceshm-session-vars.sh, Nix bash completions; chruby resolution now checks Nix profile before HomebrewBuild system
Makefile— Newrun-nixtarget with auto-detectedNIX_SYSTEM;installnow includesrun-nix; stow ignores forflake.nix,flake.lock,home.nix.aliases—updateconverted from alias to function, addsnix flake update+home-manager switchUsage