Skip to content

Commit

Permalink
deploy: edda831
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Nov 7, 2023
1 parent e532cfb commit 9b50533
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion options/groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ <h2 id="re-use-package-definitions"><a class="header" href="#re-use-package-defi
For example, a new group could be assembled by referring to the <code>modules</code> of existing groups:</p>
<pre><code class="language-nix">{config, dream2nix, ...}: {

# TODO: This is too complex. Defining a selector function should be enough to
# assemble new groups.
# Any specifics about a package other than it's `ecosystem`, `name, `version
# are not important, as everything else is expressed via override modules.
# Simply naming the keys of packages should be sufficient to assemble groups.

# The dev group
groups.dev = {

Expand All @@ -206,7 +212,6 @@ <h2 id="re-use-package-definitions"><a class="header" href="#re-use-package-defi

# a modified hello package depending on the original hello definition
packages.hello-mod.&quot;1.0.0&quot;.module = {
blabla = {inherit wuhu;};
imports = [
# import the module definition of `hello` from above
config.groups.dev.packages.hello.module
Expand All @@ -229,6 +234,11 @@ <h2 id="re-use-package-definitions"><a class="header" href="#re-use-package-defi
}
}
</code></pre>
<h2 id="todos"><a class="header" href="#todos">TODOs</a></h2>
<ul>
<li>Expose all package candidates somehow (not grouped)</li>
<li>Create groups by simply defining <code>selector</code> functions instead of referring to other group's packages modules.</li>
</ul>
<h2 id="import"><a class="header" href="#import">Import</a></h2>
<p>To import this module into your dream2nix package:</p>
<pre><code class="language-nix">imports = [
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 9b50533

Please sign in to comment.