Incomplete NixOS Flake usage #169

Closed
opened 2026-10-05 01:45:37 +02:00 by adam · 1 comment
Owner

After adding the flake input, we also need to import the module before services.gitea-mirror is available. Most places missed this.

  imports = [
    inputs.gitea-mirror.nixosModules.default
  ];
After adding the flake input, we also need to import the module before `services.gitea-mirror` is available. Most places missed this. ``` imports = [ inputs.gitea-mirror.nixosModules.default ]; ``` <!-- github-sync-id:5459757103 -->
adam closed this issue 2026-10-05 01:45:37 +02:00
Author
Owner

Thanks, you are right. Only the quick start snippet in the deployment guide showed the import; the README, NIX.md and the production snippet went straight to services.gitea-mirror, and the README snippet even put inputs.gitea-mirror.url inside configuration.nix, where it does nothing.

Fixed in #434: every snippet that enables the service now shows the input in flake.nix, imports = [ inputs.gitea-mirror.nixosModules.default ]; in configuration.nix, and notes that inputs has to reach the module through specialArgs.

Thanks, you are right. Only the quick start snippet in the deployment guide showed the import; the README, NIX.md and the production snippet went straight to `services.gitea-mirror`, and the README snippet even put `inputs.gitea-mirror.url` inside `configuration.nix`, where it does nothing. Fixed in #434: every snippet that enables the service now shows the input in `flake.nix`, `imports = [ inputs.gitea-mirror.nixosModules.default ];` in `configuration.nix`, and notes that `inputs` has to reach the module through `specialArgs`. <!-- github-comment-id:5690955018 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/gitea-mirror#169