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: Add global greedy option in caskArgs #52

Closed
x6ufeng opened this issue Nov 26, 2024 · 2 comments
Closed

Feature Request: Add global greedy option in caskArgs #52

x6ufeng opened this issue Nov 26, 2024 · 2 comments

Comments

@x6ufeng
Copy link

x6ufeng commented Nov 26, 2024

Note

👉 Moved to LnL7/nix-darwin#1201

Currently, to enable greedy updates for casks, we need to manually add the greedy option to each cask definition like this:

casks = [
{
name = "anytype";
greedy = true;
}
{
name = "vscodium";
greedy = true;
}
];

This becomes tedious and repetitive when managing multiple casks. It would be more convenient to have a global option in caskArgs, similar to how no_quarantine works:

homebrew = {
enable = true;
caskArgs = {
greedy = true; # Would apply to all casks
no_quarantine = true;
};
casks = [
"anytype"
"vscodium"
];
};

This would simplify configuration and maintain consistency across all casks while reducing the likelihood of configuration errors.

@zhaofengli
Copy link
Owner

zhaofengli commented Nov 27, 2024

Hi, this is better submitted to https://github.com/LnL7/nix-darwin.

This repo implements the nix-homebrew.* options which install Homebrew itself, and the homebrew.* options in upstream nix-darwin manage packages to be installed with Homebrew.

Please leave a link here after you create the issue in the nix-darwin repo, thanks!

@x6ufeng
Copy link
Author

x6ufeng commented Nov 28, 2024

Hi, this is better submitted to https://github.com/LnL7/nix-darwin.

This repo implements the nix-homebrew.* options which install Homebrew itself, and the homebrew.* options in upstream nix-darwin manage packages to be installed with Homebrew.

Please leave a link here after you create the issue in the nix-darwin repo, thanks!

Thank you for your guidance. I've created the issue as suggested in the nix-darwin repository: LnL7/nix-darwin#1201

@zhaofengli zhaofengli closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
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

2 participants