feat(nix): preliminary desktop app flake integration#6135
feat(nix): preliminary desktop app flake integration#6135rekram1-node merged 11 commits intoanomalyco:devfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds preliminary Nix flake support for building the Tauri desktop application. The implementation enables building the desktop app through Nix on NixOS and macOS, though it may require additional work for proper UI rendering on other GNU/Linux distributions.
Key Changes:
- Adds
nix/desktop.nixwith a complete Rust/Tauri build pipeline including frontend compilation, sidecar integration, and proper library path handling - Integrates the desktop package into
flake.nixas a new output alongside the existing CLI package - Reformats function parameters in
nix/opencode.nixandnix/node-modules.nixfor consistency
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| nix/desktop.nix | New file implementing the desktop app build derivation with Rust compilation, Node.js frontend build, and platform-specific library linking |
| flake.nix | Adds desktop package instantiation and exposes it as a flake output while restructuring the packages section |
| nix/opencode.nix | Reformats function parameter list to multi-line format for improved readability |
| nix/node-modules.nix | Reformats function parameters and native build inputs list to multi-line format |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Addressed review notes:
|
|
wow thank u |
|
ill send to adam/brendan since they work on desktop |
|
@jerome-benoit we should be able to look at this soon, been mostly away for the holidays! |
|
/oc use docs agent to document how to use nix desktop app |
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
|
Both files are in place. The documentation has been created and added to the sidebar. Here's a summary of what was done: Created: Modified: Documentation covers:
|
This reverts commit 3fcea96.
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com>

Adds a preliminary Nix flake package for the Tauri desktop app.
Tested on NixOS and on macOS. On other GNU/Linux distros, it likely needs more work for the UI to render/display correctly (e.g. runtime deps / WebKitGTK setup).