LnL7 / nix-darwin

nix modules for darwin
MIT License
2.46k stars 410 forks source link

nix-darwin says homebrew isn't installed, but it is #884

Open amrox opened 4 months ago

amrox commented 4 months ago

I'm new with nix-darwin. I'm attempting to use it to manage homebrew packages but failing immediately

➜ darwin-rebuild switch --flake ~/.config/nix-darwin
user defaults...
setting up user launchd services...
Homebrew bundle...
error: Homebrew is not installed, skipping...
...
➜ brew config
HOMEBREW_VERSION: 4.2.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: e5fefd73cd97cd36ae3af29551f529ae59b333d6
Last commit: 5 days ago
Core tap JSON: 20 Feb 15:08 UTC
Core cask tap JSON: 20 Feb 15:08 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.3KNVMhS8PU/org.xquartz:0
HOMEBREW_EDITOR: nano
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.2.1-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.2
Rosetta 2: false

any ideas?

Eveeifyeve commented 3 months ago

There is a package out there called nix-homebrew that does install homebrew by default the homebrew option doesn't install homebrew so either you have to install it the offical way or nix-homebrew.