Skip to content

feat(nix): adding flake.nix for Nix support#1173

Draft
outofrange wants to merge 13 commits into
perber:mainfrom
outofrange:feat/nix
Draft

feat(nix): adding flake.nix for Nix support#1173
outofrange wants to merge 13 commits into
perber:mainfrom
outofrange:feat/nix

Conversation

@outofrange

@outofrange outofrange commented Jun 18, 2026

Copy link
Copy Markdown

flake.nix specifies

  • ui package buildable with nix build .#ui
  • leafwiki package (default) buildable with nix build .#leafwiki or just nix build
  • app leafwiki runnable with nix run github:perber/leafwiki -- --help
  • development shell runnable with nix develop
  • NixOS and HomeManager modules for installing LeafWiki as systemd services

In the future, this could be used as a base for an official nixpkgs build.

Copilot AI review requested due to automatic review settings June 18, 2026 12:41
@outofrange outofrange requested a review from perber as a code owner June 18, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.lock to build the UI and Go backend with embedded frontend assets, plus a dev shell.
  • Updates README.md with a nix run github:perber/leafwiki -- --help example.
  • Updates .gitignore to 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.

Comment thread flake.nix Outdated
@outofrange outofrange marked this pull request as draft June 19, 2026 21:02
@outofrange

Copy link
Copy Markdown
Author

Converted to draft - gonna change Pipeline to build packages from via nix as well to have consistent, reproducible builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants