move nixosModules.default to top-level flake outputs so NixOS consumers can import inputs.gitea-mirror.nixosModules.default
fix module package default to use self.packages.${pkgs.system}.default
use Nix-store bash and sed in generated runtime scripts for portability
run startup scripts from copied scripts/*.ts paths instead of missing dist/scripts/*.js
fix optional EnvironmentFile handling with optionalAttrs
make healthcheck run via shell so || true works and use 127.0.0.1
align flake package version to 3.9.4
Verification
bun run build (pass)
bun test (119 passed, 4 skipped, 0 failed)
Notes
nix is not installed in this execution environment, so nix flake check / nix develop could not be executed here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/192
**Author:** [@arunavo4](https://github.com/arunavo4)
**Created:** 2/26/2026
**Status:** ✅ Merged
**Merged:** 2/26/2026
**Merged by:** [@arunavo4](https://github.com/arunavo4)
**Base:** `main` ← **Head:** `codex/fix-nix-setup-clean`
---
### 📝 Commits (1)
- [`7bf440f`](https://github.com/RayLabsHQ/gitea-mirror/commit/7bf440f3e02633d20c9ad359b533ab66121810f6) nix: fix flake module and runtime scripts
### 📊 Changes
**1 file changed** (+160 additions, -158 deletions)
<details>
<summary>View changed files</summary>
📝 `flake.nix` (+160 -158)
</details>
### 📄 Description
## Summary
- move `nixosModules.default` to top-level flake outputs so NixOS consumers can import `inputs.gitea-mirror.nixosModules.default`
- fix module package default to use `self.packages.${pkgs.system}.default`
- use Nix-store `bash` and `sed` in generated runtime scripts for portability
- run startup scripts from copied `scripts/*.ts` paths instead of missing `dist/scripts/*.js`
- fix optional `EnvironmentFile` handling with `optionalAttrs`
- make healthcheck run via shell so `|| true` works and use `127.0.0.1`
- align flake package version to `3.9.4`
## Verification
- `bun run build` (pass)
- `bun test` (119 passed, 4 skipped, 0 failed)
## Notes
- `nix` is not installed in this execution environment, so `nix flake check` / `nix develop` could not be executed here.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/192
Author: @arunavo4
Created: 2/26/2026
Status: ✅ Merged
Merged: 2/26/2026
Merged by: @arunavo4
Base:
main← Head:codex/fix-nix-setup-clean📝 Commits (1)
7bf440fnix: fix flake module and runtime scripts📊 Changes
1 file changed (+160 additions, -158 deletions)
View changed files
📝
flake.nix(+160 -158)📄 Description
Summary
nixosModules.defaultto top-level flake outputs so NixOS consumers can importinputs.gitea-mirror.nixosModules.defaultself.packages.${pkgs.system}.defaultbashandsedin generated runtime scripts for portabilityscripts/*.tspaths instead of missingdist/scripts/*.jsEnvironmentFilehandling withoptionalAttrs|| trueworks and use127.0.0.13.9.4Verification
bun run build(pass)bun test(119 passed, 4 skipped, 0 failed)Notes
nixis not installed in this execution environment, sonix flake check/nix developcould not be executed here.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.