Error rebuilding Nix Darwin (homebrew)

...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
lazyjournal

You have 3 outdated formulae installed.

Usage: brew bundle [subcommand]

Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask, Mac App Store,
Whalebrew and Visual Studio Code.
...
... (information about brew bundle command)
...
Error: invalid option: --no-lock

I believe autoupdate/autoupgrade with nix-homebrew is running --no-lock internally somewhere and that’s probably causing this? I’m not sure though, and have no idea how to debug this. Any help would be appreciated. I’m running rebuild after like a month or so.

Looks similar to

And it seems like updating nix-darwin by running nix flake update fixes the issue.

Thank you so much! Didn’t find that github thread when I searched for it.

1 Like