docs(nix): import the module before enabling services.gitea-mirror (#434)

The README, NIX.md and the production snippet in the deployment guide set
services.gitea-mirror straight after adding the flake input, but the
option only exists once gitea-mirror.nixosModules.default is imported.
Only the quick start snippet showed that (#426). Every snippet that
enables the service now shows the import and where the input goes.
This commit is contained in:
ARUNAVO RAY authored and GitHub committed 2026-09-16 07:31:52 +05:30
1 parent 9c11d398e9
commit 2d1795051d
3 files changed
+19 -5

No files matched your search

+7 -2
View File
@@ -174,10 +174,15 @@ nix profile install --extra-experimental-features 'nix-command flakes' github:Ra
gitea-mirror
```
**NixOS users** - add to your configuration:
**NixOS users** - add the flake input, import the module, then enable the service:
```nix
# flake.nix
inputs.gitea-mirror.url = "github:RayLabsHQ/gitea-mirror";
# configuration.nix (needs `inputs` passed through specialArgs)
{ inputs, ... }:
{
inputs.gitea-mirror.url = "github:RayLabsHQ/gitea-mirror";
imports = [ inputs.gitea-mirror.nixosModules.default ];
services.gitea-mirror = {
enable = true;