feat(nix): adding flake.nix for Nix support#1173
Draft
outofrange wants to merge 13 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class Nix Flake support so LeafWiki (backend + embedded UI) can be built/run via nix build / nix run, and documents the new install/run option.
Changes:
- Introduces
flake.nix/flake.lockto build the UI and Go backend with embedded frontend assets, plus a dev shell. - Updates
README.mdwith anix run github:perber/leafwiki -- --helpexample. - Updates
.gitignoreto ignore Nix build output links.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Documents a Nix-based run command alongside Docker. |
| flake.nix | Defines Nix flake outputs: ui, leafwiki, apps, and devShell. |
| flake.lock | Pins nixpkgs and flake-utils inputs for reproducible builds. |
| .gitignore | Ignores Nix result output link(s). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nix into individual files
perber
approved these changes
Jun 18, 2026
Author
|
Converted to draft - gonna change Pipeline to build packages from via nix as well to have consistent, reproducible builds. |
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.
flake.nixspecifiesuipackage buildable withnix build .#uileafwikipackage (default) buildable withnix build .#leafwikior justnix buildleafwikirunnable withnix run github:perber/leafwiki -- --helpnix developIn the future, this could be used as a base for an official nixpkgs build.