dustinlyons / nixos-config

General purpose Nix configuration for macOS / NixOS with starter templates + step-by-step guides ✨
BSD 3-Clause "New" or "Revised" License
1.79k stars 113 forks source link

How to update brew with configure #121

Open tangkhaiphuong opened 3 weeks ago

tangkhaiphuong commented 3 weeks ago

HI, I try add brew package azure-cli in file: https://github.com/dustinlyons/nixos-config/blob/main/modules/darwin/casks.nix

And try run: nix run .#build-switch

Installing azure-cli
Warning: Cask 'azure-cli' is unavailable: No Cask with this name exists.
Error: No casks found for azure-cli.
==> Searching for similarly named casks...
Installing azure-cli has failed!

So how to configure brew update package. In the past it just: brew update && brew install azure-cli

dustinlyons commented 3 weeks ago

Hi @tangkhaiphuong

This project only uses homebrew for software out of scope of the Nix package manager, which includes only casks and Mac App Store apps, not traditional terminal software.

For that, you should use the Nix package manager. You can search for packages available in nixpkgs (the Nix package repository) here: https://search.nixos.org/packages

I checked, and azure-cli is available, so you can install it by just adding azure-cli to your packages.nix file.

tangkhaiphuong commented 3 weeks ago

I want to reset everything at start new. So what command to do it?