homebrew: allow setting greedy for all casks by default

This commit is contained in:
Varun Narravula 2025-03-10 19:19:17 -07:00
parent adf5c88ba1
commit e2361f4496
No known key found for this signature in database
GPG key ID: A1F17E43F6747FC0

View file

@ -502,7 +502,9 @@ let
[](#opt-homebrew.caskArgs) for the available options.
'';
};
greedy = mkNullOrBoolOption {
greedy = mkOption {
type = types.nullOr types.bool;
default = cfg.greedyCasks;
description = ''
Whether to always upgrade this cask regardless of whether it's unversioned or it updates
itself.
@ -631,6 +633,13 @@ in
'';
};
greedyCasks = mkNullOrBoolOption {
description = ''
Whether to always upgrade casks listed in [](#opt-homebrew.casks) regardless
of whether it's unversioned or it updates itself.
'';
};
brews = mkOption {
type = with types; listOf (coercedTo str (name: { inherit name; }) (submodule brewOptions));
default = [ ];