update documentation on how to implement a service
This commit is contained in:
parent
13f4064e93
commit
1a5ecc9328
1 changed files with 8 additions and 6 deletions
|
|
@ -381,14 +381,16 @@ source: @OPTIONS_JSON@
|
||||||
|
|
||||||
Note: Replace `servicename` with your actual service name (e.g., `nzbget`, `jellyfin`).
|
Note: Replace `servicename` with your actual service name (e.g., `nzbget`, `jellyfin`).
|
||||||
|
|
||||||
For the `@OPTIONS_JSON@` to work, the following snippet must be added
|
For the `@OPTIONS_JSON@` to work, a line must be added
|
||||||
in the `docs/default.nix` file.
|
in the `flake.nix` file:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
substituteInPlace ./modules/services/servicename/docs/default.md \
|
packages.manualHtml = pkgs.callPackage ./docs {
|
||||||
--replace \
|
modules = {
|
||||||
'@OPTIONS_JSON@' \
|
"blocks/authelia" = ./modules/blocks/authelia.nix;
|
||||||
${individualModuleOptionsDocs [ ../modules/services/servicename.nix ]}/share/doc/nixos/options.json
|
// Add line and keep in alphabetical order.
|
||||||
|
};
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
### 7. Update Redirects Automatically {#update-redirects-automatically}
|
### 7. Update Redirects Automatically {#update-redirects-automatically}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue