Closed gjolund closed 2 months ago
All I do is look up the formula here: https://formulae.brew.sh/cask/ and add whatever is found to this list: https://github.com/dustinlyons/nixos-config/blob/main/modules/darwin/casks.nix
In your case, stripe-cli
is just stripe-cli
, not stripe/stripe-cli/stripe
.
This is all managed by homebrew
here: https://github.com/dustinlyons/nixos-config/blob/dbe92f2d71b1e4b28e9bab2af9351322c41c2f3b/modules/darwin/home-manager.nix#L30
All I do is look up the formula here: https://formulae.brew.sh/cask/ and add whatever is found to this list: https://github.com/dustinlyons/nixos-config/blob/main/modules/darwin/casks.nix
In your case,
stripe-cli
is juststripe-cli
, notstripe/stripe-cli/stripe
.This is all managed by
homebrew
here:
This works for casks, but the stripe-cli is distributed as a brew formulae and is not a cask.
typically it is installed via brew install stripe-cli
and not brew install --cask stripe-cli
.
this is why I was trying to add the brews.nix
declaration file.
This configuration doesn't currently support brew
formula, only casks. This is because brew
formula essentially does what the nix package manager does-- install packages. But brew
is imperative, nix is declarative.
You should search here for your packages instead:
and add to packages.nix
.
In this configuration, brew
is only used for macOS apps that do not belong in nixpkgs
, so you can install casks.
This configuration doesn't currently support
brew
formula, only casks. This is becausebrew
formula essentially does what the nix package manager does-- install packages. Butbrew
is imperative, nix is declarative.You should search here for your packages instead:
and add to
packages.nix
.In this configuration,
brew
is only used for macOS apps that do not belong innixpkgs
, so you can install casks.
ok that makes sense, thank you for the explanation
I tried adding homebrew formulae to the config in the same way as you added the casks but it keeps throwing errors, that is the recommended way to manage homebrew formulae in this fashion?
https://mynixos.com/nix-darwin/option/homebrew.brews
brews.nix