1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
This commit is contained in:
khaneliman 2025-08-12 04:56:37 +00:00
parent 7ee13bd17f
commit f469c31244

View file

@ -30571,6 +30571,205 @@ attribute set of string</p>
</td></tr> </td></tr>
</table> </table>
</dd> </dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.enable"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.enable"><code class="option">programs.gemini-cli.enable</code>
</a>
</span>
</dt>
<dd>
<p>Whether to enable gemini-cli.</p>
<p><span class="emphasis"><em>Type:</em></span>
boolean</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">false</code></p>
<p><span class="emphasis"><em>Example:</em></span>
<code class="literal">true</code></p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.package"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.package"><code class="option">programs.gemini-cli.package</code>
</a>
</span>
</dt>
<dd>
<p>The gemini-cli package to use.</p>
<p><span class="emphasis"><em>Type:</em></span>
null or package</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">pkgs.gemini-cli</code></p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.commands"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.commands"><code class="option">programs.gemini-cli.commands</code>
</a>
</span>
</dt>
<dd>
<p>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 <code class="literal">git/fix</code> becoming <code class="literal">/git:fix</code>.
See https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/commands.md#custom-commands for more information.</p>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of (string)</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">{ }</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">changelog = {
prompt =
&#x27;&#x27;
Your task is to parse the `&lt;version&gt;`, `&lt;change_type&gt;`, and `&lt;message&gt;` from their input and use the `write_file` tool to correctly update the `CHANGELOG.md` file.
&#x27;&#x27;;
description = &quot;Adds a new entry to the project&#x27;s CHANGELOG.md file.&quot;;
};
&quot;git/fix&quot; = { # Becomes /git:fix
prompt = &quot;Please analyze the staged git changes and provide a code fix for the issue described here: {{args}}.&quot;;
description = &quot;Generates a fix for a given GitHub issue.&quot;;
};
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.commands._name_.description"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.commands._name_.description"><code class="option">programs.gemini-cli.commands.&lt;name&gt;.description</code>
</a>
</span>
</dt>
<dd>
<p>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.</p>
<p><span class="emphasis"><em>Type:</em></span>
string</p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.commands._name_.prompt"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.commands._name_.prompt"><code class="option">programs.gemini-cli.commands.&lt;name&gt;.prompt</code>
</a>
</span>
</dt>
<dd>
<p>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.</p>
<p><span class="emphasis"><em>Type:</em></span>
string</p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.defaultModel"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.defaultModel"><code class="option">programs.gemini-cli.defaultModel</code>
</a>
</span>
</dt>
<dd>
<p>The default model to use for the CLI.
Will be set as $GEMINI_MODEL.</p>
<p><span class="emphasis"><em>Type:</em></span>
string</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">&quot;gemini-2.5-pro&quot;</code></p>
<p><span class="emphasis"><em>Example:</em></span>
<code class="literal">&quot;gemini-2.5-flash&quot;</code></p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.gemini-cli.settings"></a><a class="term" href="options.xhtml#opt-programs.gemini-cli.settings"><code class="option">programs.gemini-cli.settings</code>
</a>
</span>
</dt>
<dd>
<p>JSON config for gemini-cli</p>
<p><span class="emphasis"><em>Type:</em></span>
JSON value</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">{ }</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
&quot;theme&quot;: &quot;Default&quot;,
&quot;vimMode&quot;: true,
&quot;preferredEditor&quot;: &quot;nvim&quot;,
&quot;autoAccept&quot;: true
}
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/gemini-cli.nix" target="_top">
&lt;home-manager/modules/programs/gemini-cli.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt> <dt>
<span class="term"> <span class="term">
<a id="opt-programs.gh.enable"></a><a class="term" href="options.xhtml#opt-programs.gh.enable"><code class="option">programs.gh.enable</code> <a id="opt-programs.gh.enable"></a><a class="term" href="options.xhtml#opt-programs.gh.enable"><code class="option">programs.gh.enable</code>