Add a flake.nix (and flake.lock) at the repository root so users and contributors can build, run, and develop getael reproducibly with Nix.
Scope #
- Packages (
packages.<system>.default/getael):- Support
aarch64-darwin,x86_64-darwin, and (once Linux support lands)x86_64-linux/aarch64-linux. - Build the embedded
web/bundle reproducibly (e.g.buildNpmPackage) and pass/embed it into the Rust build (rustPlatform.buildRustPackageorcrane) with zero external runtime assets.
- Support
- Apps (
apps.<system>.default): Supportnix rundirectly from the flake. - Dev shell (
devShells.<system>.default): Provide Rust toolchain (cargo,rustc,rustfmt,clippy), Node.js/npm, andsqlitefor local development. - Service module (optional / follow-up): Consider exposing a Home Manager / nix-darwin / NixOS user-service module (
launchdagent on macOS,systemd --userservice on Linux). - Documentation: Document
nix run,nix profile install, andnix developinREADME.md.
Acceptance Criteria #
nix flake checkandnix buildsucceed cleanly on macOS (and Linux once supported).nix runlaunchesgetaelwith the embedded web UI working offline.