[PR #192] [MERGED] nix: fix flake module and runtime scripts #178

Closed
opened 2026-02-27 15:55:26 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: codex/fix-nix-setup-clean


📝 Commits (1)

  • 7bf440f nix: fix flake module and runtime scripts

📊 Changes

1 file changed (+160 additions, -158 deletions)

View changed files

📝 flake.nix (+160 -158)

📄 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.

🔄 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>
kerem 2026-02-27 15:55:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gitea-mirror#178
No description provided.