diff --git a/options.xhtml b/options.xhtml index c8c55ece6..e2a393bd6 100644 --- a/options.xhtml +++ b/options.xhtml @@ -30571,6 +30571,205 @@ attribute set of string

+
+ + programs.gemini-cli.enable + + +
+
+

Whether to enable gemini-cli.

+ +

Type: +boolean

+ +

Default: +false

+ +

Example: +true

+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
+
+ + programs.gemini-cli.package + + +
+
+

The gemini-cli package to use.

+ +

Type: +null or package

+ +

Default: +pkgs.gemini-cli

+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
+
+ + programs.gemini-cli.commands + + +
+
+

An attribute set of custom commands that will be globally available. +The name of the attribute set will be the name of each command. +You may use subdirectories to create namespaced commands, such as git/fix becoming /git:fix. +See https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/commands.md#custom-commands for more information.

+ +

Type: +attribute set of (string)

+ +

Default: +{ }

+ +

Example:

changelog = {
+  prompt =
+    ''
+    Your task is to parse the `<version>`, `<change_type>`, and `<message>` from their input and use the `write_file` tool to correctly update the `CHANGELOG.md` file.
+    '';
+  description = "Adds a new entry to the project's CHANGELOG.md file.";
+};
+"git/fix" = { # Becomes /git:fix
+  prompt = "Please analyze the staged git changes and provide a code fix for the issue described here: {{args}}.";
+  description = "Generates a fix for a given GitHub issue.";
+};
+
+
+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
+
+ + programs.gemini-cli.commands.<name>.description + + +
+
+

A brief, one-line description of what the command does. +This text will be displayed next to your command in the /help menu. +If you omit this field, a generic description will be generated from the filename.

+ +

Type: +string

+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
+
+ + programs.gemini-cli.commands.<name>.prompt + + +
+
+

The prompt that will be sent to the Gemini model when the command is executed. +This can be a single-line or multi-line string. +The special placeholder {{args}} will be replaced with the text the user typed after the command name.

+ +

Type: +string

+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
+
+ + programs.gemini-cli.defaultModel + + +
+
+

The default model to use for the CLI. +Will be set as $GEMINI_MODEL.

+ +

Type: +string

+ +

Default: +"gemini-2.5-pro"

+ +

Example: +"gemini-2.5-flash"

+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
+
+ + programs.gemini-cli.settings + + +
+
+

JSON config for gemini-cli

+ +

Type: +JSON value

+ +

Default: +{ }

+ +

Example:

{
+  "theme": "Default",
+  "vimMode": true,
+  "preferredEditor": "nvim",
+  "autoAccept": true
+}
+
+
+ +

Declared by:

+ + +
+ +<home-manager/modules/programs/gemini-cli.nix> + +
+
programs.gh.enable