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
Replace the Homebrew .brew shell script with a declarative nix-darwin configuration (darwin.nix). On macOS, a single `darwin-rebuild switch` now manages CLI tools (via home-manager), GUI/cask apps (via Homebrew module), and system settings. - Add darwin.nix with homebrew.casks and system config - Update flake.nix with nix-darwin input and darwinConfigurations - Add ruby-install to home.nix - Remove .brew (fully replaced by darwin.nix) - Update Makefile with run-darwin target, install-rubies, remove install-homebrew and run-brew - Update .bashrc, .profile, .aliases, README.md Agent-Logs-Url: https://github.com/bdossantos/dotfiles/sessions/2faa8162-bb22-410f-8c13-72ec4551de09 Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.com>
bdossantos
reviewed
Apr 13, 2026
| "google-chrome" | ||
| "gpg-suite" | ||
| "imageoptim" | ||
| "iterm2" |
Owner
There was a problem hiding this comment.
@copilot I don't need iterm2, keybase, omnigraffle, vagrant and virtualbox anymore
Contributor
Author
There was a problem hiding this comment.
Removed iterm2, keybase, omnigraffle, vagrant, and virtualbox from the casks list in a021b7f.
- Fix OS variable expansion in Makefile (use $(shell uname)) - Rename CHRUBY_SH to CHRUBY_DIR for clarity - Add comment explaining useUserPackages = false choice Agent-Logs-Url: https://github.com/bdossantos/dotfiles/sessions/2faa8162-bb22-410f-8c13-72ec4551de09 Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.com>
…box casks Agent-Logs-Url: https://github.com/bdossantos/dotfiles/sessions/8de49c1d-c36c-42f6-82aa-8955e1c79c24 Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.com>
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.
darwin.nix— nix-darwin macOS configuration with declarative Homebrew casksflake.nix— add nix-darwin input, createdarwinConfigurationsfor macOS, keephomeConfigurationsfor Linuxhome.nix— addruby-installpackage (used with chruby).brew— no longer needed, all cask management is indarwin.nixMakefile— replacerun-brew/install-homebrewwithrun-darwin, addinstall-rubies, keeprun-nixfor Linux.bashrc— update comments to reflect nix-darwin management.aliases— updateupdate()function to usedarwin-rebuildREADME.md— document nix-darwin setup and usagemake testto validate changes