mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
64 lines
No EOL
1.7 KiB
HTML
64 lines
No EOL
1.7 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<title>flake-parts</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1><code>flake-parts</code></h1>
|
|
|
|
<p>
|
|
Compose flakes with the (NixOS) module system.
|
|
</p>
|
|
|
|
<p>
|
|
Testimonials:
|
|
</p>
|
|
|
|
<blockquote>
|
|
yeah.. powerful stuff
|
|
</blockquote>
|
|
|
|
<blockquote>
|
|
I cannot tell you how freeing the flake-modules concept is<br/>
|
|
fucking hell<br/>
|
|
I feel like a hipster using it too
|
|
</blockquote>
|
|
|
|
<p>
|
|
Learn more:
|
|
</p>
|
|
|
|
<p>
|
|
<a href="https://github.com/hercules-ci/flake-parts">GitHub</a>
|
|
</p>
|
|
|
|
<p>
|
|
<a href="./options.html">Options Reference</a>
|
|
</p>
|
|
|
|
<p>
|
|
<a href="https://github.com/hercules-ci/flake-parts/blob/main/ChangeLog.md">ChangeLog</a>
|
|
</p>
|
|
|
|
<p>
|
|
Integrations:
|
|
</p>
|
|
<ul>
|
|
<li><code>github:hercules-ci/hercules-ci-effects</code></li>
|
|
<li><code>github:hercules-ci/pre-commit-hooks.nix/flakeModule</code></li>
|
|
</ul>
|
|
|
|
<h2>Write your own integration</h2>
|
|
|
|
<p>
|
|
For a general introduction to modules, you can read <a href="https://nixos.org/manual/nixos/stable/index.html#sec-writing-modules">Writing Modules</a> in the NixOS manual, though it goes into NixOS specifics quite quickly. Instead of <code>services.<name>.*</code>, etc, we have our own <a href="./options.html">options</a>.
|
|
</p>
|
|
|
|
<p>
|
|
Writing modules in a distributed ecosystem can be a bit different. If you're inclined to write to some other module's options, consider whether those will be loaded and whether your integration idea is always desirable. If it's not always desirable, consider splitting it off into an extra module, e.g. <code>flakeModules.someOther</code>. Otherwise check if it's loaded: <code>lib.optionalAttrs (options?some.other.option)</code>. You can ask <code>@roberth</code> on GitHub.
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html> |