mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
deploy: b7cc2466f1
This commit is contained in:
parent
ce842e06d2
commit
93819f9988
1 changed files with 68 additions and 32 deletions
|
|
@ -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">"config.programs.distrobox.containers != { } && config.programs.distrobox.package != null"</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">''
|
||||
{
|
||||
python-project = {
|
||||
image = "fedora:40";
|
||||
additional_packages = "python3 git";
|
||||
init_hooks = "pip3 install numpy pandas torch torchvision";
|
||||
};
|
||||
|
||||
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
|
||||
common-debian = {
|
||||
image = "debian:13";
|
||||
entry = true;
|
||||
additional_packages = "git";
|
||||
entry = true;
|
||||
image = "debian:13";
|
||||
init_hooks = [
|
||||
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker"
|
||||
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose"
|
||||
];
|
||||
};
|
||||
|
||||
office = {
|
||||
clone = "common-debian";
|
||||
additional_packages = "libreoffice onlyoffice";
|
||||
clone = "common-debian";
|
||||
entry = true;
|
||||
};
|
||||
|
||||
python-project = {
|
||||
additional_packages = "python3 git";
|
||||
image = "fedora:40";
|
||||
init_hooks = "pip3 install numpy pandas torch torchvision";
|
||||
};
|
||||
random-things = {
|
||||
clone = "common-debian";
|
||||
entry = false;
|
||||
};
|
||||
}
|
||||
''
|
||||
</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">
|
||||
<home-manager/modules/programs/distrobox.nix>
|
||||
</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 = "/example:/example1 /example2:/example3:ro";
|
||||
container_always_pull = "1";
|
||||
container_generate_entry = 0;
|
||||
container_image_default = "registry.opensuse.org/opensuse/toolbox:latest";
|
||||
container_init_hook = "~/.local/distrobox/a_custom_default_init_hook.sh";
|
||||
container_manager = "docker";
|
||||
container_manager_additional_flags = "--env-file /path/to/file --custom-flag";
|
||||
container_name_default = "test-name-1";
|
||||
container_pre_init_hook = "~/a_custom_default_pre_init_hook.sh";
|
||||
container_user_custom_home = "$HOME/.local/share/container-home-test";
|
||||
non_interactive = "1";
|
||||
skip_workdir = "0";
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p><span class="emphasis"><em>Declared by:</em></span></p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue