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-31 23:33:41 +00:00
parent ce842e06d2
commit 93819f9988

View file

@ -24820,7 +24820,7 @@ containers when changes are detected.</p>
boolean</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">true</code></p>
<code class="literal">&quot;config.programs.distrobox.containers != { } &amp;&amp; config.programs.distrobox.package != null&quot;</code></p>
<p><span class="emphasis"><em>Example:</em></span>
<code class="literal">false</code></p>
@ -24844,7 +24844,7 @@ boolean</p>
<p>The distrobox package to use.</p>
<p><span class="emphasis"><em>Type:</em></span>
package</p>
null or package</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">pkgs.distrobox</code></p>
@ -24876,36 +24876,72 @@ attribute set of section of an INI file (attrs of INI atom (null, bool, int, flo
<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">&#x27;&#x27;
{
python-project = {
image = &quot;fedora:40&quot;;
additional_packages = &quot;python3 git&quot;;
init_hooks = &quot;pip3 install numpy pandas torch torchvision&quot;;
};
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
common-debian = {
image = &quot;debian:13&quot;;
entry = true;
additional_packages = &quot;git&quot;;
entry = true;
image = &quot;debian:13&quot;;
init_hooks = [
&quot;ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker&quot;
&quot;ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose&quot;
];
};
office = {
clone = &quot;common-debian&quot;;
additional_packages = &quot;libreoffice onlyoffice&quot;;
clone = &quot;common-debian&quot;;
entry = true;
};
python-project = {
additional_packages = &quot;python3 git&quot;;
image = &quot;fedora:40&quot;;
init_hooks = &quot;pip3 install numpy pandas torch torchvision&quot;;
};
random-things = {
clone = &quot;common-debian&quot;;
entry = false;
};
}
&#x27;&#x27;
</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/distrobox.nix" target="_top">
&lt;home-manager/modules/programs/distrobox.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.distrobox.settings"></a><a class="term" href="options.xhtml#opt-programs.distrobox.settings"><code class="option">programs.distrobox.settings</code>
</a>
</span>
</dt>
<dd>
<p>Configuration settings for Distrobox. All the available options can be found here:
<a class="link" href="https://github.com/89luca89/distrobox?tab=readme-ov-file#configure-distrobox" target="_top">https://github.com/89luca89/distrobox?tab=readme-ov-file#configure-distrobox</a></p>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of (INI atom (null, bool, int, float or string) or a list of them for duplicate keys)</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">{
container_additional_volumes = &quot;/example:/example1 /example2:/example3:ro&quot;;
container_always_pull = &quot;1&quot;;
container_generate_entry = 0;
container_image_default = &quot;registry.opensuse.org/opensuse/toolbox:latest&quot;;
container_init_hook = &quot;~/.local/distrobox/a_custom_default_init_hook.sh&quot;;
container_manager = &quot;docker&quot;;
container_manager_additional_flags = &quot;--env-file /path/to/file --custom-flag&quot;;
container_name_default = &quot;test-name-1&quot;;
container_pre_init_hook = &quot;~/a_custom_default_pre_init_hook.sh&quot;;
container_user_custom_home = &quot;$HOME/.local/share/container-home-test&quot;;
non_interactive = &quot;1&quot;;
skip_workdir = &quot;0&quot;;
}
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>