zerobyte/app
James Brink 5cb092f130 feat: add pure NixOS flake with bun2nix
Adds a complete Nix flake for NixOS integration:

Package:
- Pure reproducible builds using bun2nix (no network during build)
- Bundles restic, rclone, shoutrrr, and other runtime dependencies
- Supports x86_64-linux, aarch64-linux, x86_64-darwin, aarch64-darwin
- Version read from package.json to avoid drift

NixOS Module:
- Systemd service with security hardening
- FUSE support for remote mounts (NFS, SMB, WebDAV)
- Configurable options: port, dataDir, user/group, timezone, etc.
- protectHome option for backing up home directories
- CAP_DAC_READ_SEARCH capability when protectHome=false
- PORT env var properly passed to server

Development:
- devShell with bun, node, biome, typescript, and runtime tools
- bun2nix CLI for regenerating bun.nix after dependency changes

Also includes:
- Overlay exposing zerobyte and shoutrrr packages
- NixOS VM integration tests
- Experimental darwin module (requires TCC permissions for home dirs)
- Configurable MIGRATIONS_PATH and PORT for Nix store compatibility

Note: package.json includes additional peer dependencies (@standard-community/*,
@standard-schema/spec, openapi-types, quansync, react-is) required by bun2nix
for pure builds - bun requires all transitive peer deps to be satisfied.
2025-12-27 00:01:46 -07:00
..
client refactor: import local repositories use path only and not name 2025-12-26 17:29:42 +01:00
drizzle refactor: import local repositories use path only and not name 2025-12-26 17:29:42 +01:00
middleware refactor: unify backend and frontend servers (#3) 2025-11-13 20:11:46 +01:00
schemas refactor(startup): ensure entities always use the latest configuration format (#173) 2025-12-18 18:11:39 +01:00
server feat: add pure NixOS flake with bun2nix 2025-12-27 00:01:46 -07:00
test Controllers tests (#187) 2025-12-19 19:25:21 +01:00
utils feat(schedule-form): allow custom cron expression (#214) 2025-12-22 20:51:46 +01:00
app.css secret reference core support 2025-12-15 10:48:35 +01:00
context.ts refactor: unify backend and frontend servers (#3) 2025-11-13 20:11:46 +01:00
root.tsx refactor: rebrand to zerobyte (#45) 2025-11-20 18:59:57 +01:00
routes.ts fix: allow arbitrary name for repositories and correctly import existing local repos (#197) 2025-12-22 20:52:26 +01:00