update documentation on how to implement a service

This commit is contained in:
ibizaman 2025-07-12 21:50:52 +02:00 committed by Pierre Penninckx
parent 13f4064e93
commit 1a5ecc9328

View file

@ -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}