feat(nix): add complete Nix build system with Tauri and OpenGL fixes#82
Open
commandodev wants to merge 1 commit into
Open
feat(nix): add complete Nix build system with Tauri and OpenGL fixes#82commandodev wants to merge 1 commit into
commandodev wants to merge 1 commit into
Conversation
Add Nix flake with proper Tauri v2 build configuration that resolves both asset embedding and graphics driver issues on NixOS. Key changes: - Add flake.nix with separate frontend and backend builds - Use bun2nix for frontend build with proper filtering - Use cargo-tauri for Rust build to embed assets correctly - Modify tauri.conf.json during build to skip frontend rebuild - Add software rendering fallback for OpenGL compatibility - Use wrapGAppsHook3 for proper GTK/WebKit integration - Add result/ to .gitignore and .envrc for direnv support Fixes: - Resolves "Could not connect to localhost" by properly embedding dist/ - Eliminates OpenGL driver errors with software rendering - Follows nixpkgs patterns used by other Tauri applications The application now builds and runs successfully on NixOS without requiring manual driver configuration or external dependencies.
This was referenced Jun 30, 2025
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Nix flake with proper Tauri v2 build configuration that resolves both asset embedding and graphics driver issues on NixOS.
Key changes:
The application now builds and runs successfully on NixOS without requiring manual driver configuration or external dependencies.
I've only tested this on wayland/hyprland so far.