Closed wenbang24 closed 3 weeks ago
somehow the error changed but idk why lol
@wenbang24
I was getting a similar issue when porting my nix flake from one macbook to another. I found that deleting the /usr/local/.managed_by_nix_darwin
then retrying fixed it for me.
My .managed_by_nix_darwin
was empty, so I'd be careful to double check yours
I also deleted my flake.lock and ran the initial command
nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/dotfiles/nix#macbookpro
yeah deleting /usr/local/.managed_by_nix_darwin
worked for me!
thanks @leoroese
When running
darwin-rebuild switch --flake ~/nix#mbp
, it tells me that there is no brew - isn't nix-homebrew supposed to install homebrew for me? This is the output:This is my flake.nix:
I did originally have homebrew installed but i uninstalled it, which is why the autoMigrate line is commented out. I am on 2020 Macbook Pro M1
Does anyone know how to fix this?