Getǣl — Read-only macOS home directory disk usage cartography & APFS telemetry service

Add a Nix flake for reproducible builds and dev shell #12

Closed zip.mu.social
Closed opened by zip.mu.social

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 #

  1. 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.buildRustPackage or crane) with zero external runtime assets.
  2. Apps (apps.<system>.default): Support nix run directly from the flake.
  3. Dev shell (devShells.<system>.default): Provide Rust toolchain (cargo, rustc, rustfmt, clippy), Node.js/npm, and sqlite for local development.
  4. Service module (optional / follow-up): Consider exposing a Home Manager / nix-darwin / NixOS user-service module (launchd agent on macOS, systemd --user service on Linux).
  5. Documentation: Document nix run, nix profile install, and nix develop in README.md.

Acceptance Criteria #

  • nix flake check and nix build succeed cleanly on macOS (and Linux once supported).
  • nix run launches getael with the embedded web UI working offline.
Sign up or Sign in to add to the discussion.