Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ability to define your casks and formulas #20

Open
Eveeifyeve opened this issue Apr 2, 2024 · 5 comments
Open

Feature Request: Ability to define your casks and formulas #20

Eveeifyeve opened this issue Apr 2, 2024 · 5 comments

Comments

@Eveeifyeve
Copy link

Eveeifyeve commented Apr 2, 2024

I think this would be great that way people can fully use nix with brew. All you have to do is brew install for formulas and brew install --casks for casks to implement it. I have took inspiration from Nix-Darwin HomeBrew Casks and Nix-Darwin HomeBrew Formulas.

Example config ref:

...
nix-homebrew.darwinModules.nix-homebrew {
 nix-homebrew = {
  casks = ["spotify", "wezterm", "iterm"]; # Example casks
  formulas = ["spotifyd", "bun"]; # Example formulas
  };
}
@Eveeifyeve Eveeifyeve changed the title Feature: Ability to define your casks and formulas Feature Request: Ability to define your casks and formulas Apr 2, 2024
@genebean
Copy link

genebean commented Apr 8, 2024

Isn't this an example exactly that? https://github.com/genebean/dots/blob/b2f97f3e41ee1a3347d2d2b05dae4e2dcfe3eab9/modules/system/common/all-darwin.nix#L23-L82

Just remembered that this may be coming from nix-darwin...

@Eveeifyeve
Copy link
Author

Yeh it's from nix darwin but it:

  1. Requires homebrew
  2. Doesn't work with nix-homebrew
  3. Nix hombrew is a thing it should really have the ability to do this.

@zhaofengli
Copy link
Owner

I'm not using the homebrew-bundle integration in nix-darwin myself, but others are and it supposedly works (#19). What error are you getting?

@Eveeifyeve
Copy link
Author

Homebrew nmot installed on rebuild

@Eveeifyeve
Copy link
Author

But also it might be worth it since people do want to homebrew but I felt like the hombrew option in nix-darwin is a bit much when your using nix-homebrew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants