mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-23 17:31:11 +01:00
gemini-cli: don't force GEMINI_MODEL
Default to null so user's can opt in to using this variable that will override configurations. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
bb35f07cc9
commit
c848303f1e
1 changed files with 6 additions and 4 deletions
|
|
@ -81,12 +81,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultModel = lib.mkOption {
|
defaultModel = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.nullOr lib.types.str;
|
||||||
default = "gemini-2.5-pro";
|
default = null;
|
||||||
example = "gemini-2.5-flash";
|
example = "gemini-2.5-flash";
|
||||||
description = ''
|
description = ''
|
||||||
The default model to use for the CLI.
|
The default model to use for the CLI.
|
||||||
Will be set as $GEMINI_MODEL.
|
Will be set as $GEMINI_MODEL when configured.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -138,7 +138,9 @@ in
|
||||||
file.".gemini/settings.json" = lib.mkIf (cfg.settings != { }) {
|
file.".gemini/settings.json" = lib.mkIf (cfg.settings != { }) {
|
||||||
source = jsonFormat.generate "gemini-cli-settings.json" cfg.settings;
|
source = jsonFormat.generate "gemini-cli-settings.json" cfg.settings;
|
||||||
};
|
};
|
||||||
sessionVariables.GEMINI_MODEL = cfg.defaultModel;
|
sessionVariables = lib.mkIf (cfg.defaultModel != null) {
|
||||||
|
GEMINI_MODEL = cfg.defaultModel;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue