Skip to content

feat(packaging): nix flake#3

Open
ixxie wants to merge 1 commit into
zsa:mainfrom
ixxie:nix-flake
Open

feat(packaging): nix flake#3
ixxie wants to merge 1 commit into
zsa:mainfrom
ixxie:nix-flake

Conversation

@ixxie
Copy link
Copy Markdown

@ixxie ixxie commented May 1, 2026

This adds a Nix flake, allowing Nix users to install zapp. It also includes a NixOS module that installs zapp and configures udev rules appropriately on the system.

Copy link
Copy Markdown
Collaborator

@scrabsha scrabsha left a comment

Choose a reason for hiding this comment

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

Please add a section to the README that explains how to add zapp to a NixOS config!

Comment thread flake.nix Outdated
Comment thread flake.nix Outdated
Comment thread flake.nix
@scrabsha scrabsha self-assigned this May 5, 2026
@ixxie ixxie force-pushed the nix-flake branch 2 times, most recently from f0d47a6 to 315dd0e Compare May 11, 2026 12:19
Adds a Nix flake that builds zapp and exposes a NixOS module
installing the binary and registering the udev rules system-wide.

The package is split into nix/package.nix and consumed via callPackage,
so individual deps can be overridden. The NixOS module is a standalone
file (nix/nixos-module.nix) with a `package` option, wired up at the
flake level. An overlay (nix/overlay.nix) and top-level default.nix /
shell.nix make the package usable from non-flake configurations too.
udev rules install to $out/lib/udev/rules.d/ so consumers can pass the
package directly to services.udev.packages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ixxie
Copy link
Copy Markdown
Author

ixxie commented May 11, 2026

Hey so:

  • Added .envrc with use flake
  • I've remembered lessons from an old PR review and thought it would be better to split out a package.nix and nixos-module.nix, and also add a overlay.nix. This allows more flexibility in, e.g. using the package without the flake.
  • Updated the README.md
  • Updated the commit message and added the Claude signature for transparency

Tested on my machine, seems to work.

@scrabsha
Copy link
Copy Markdown
Collaborator

wow, thank you so much for your work! i'll look at it tomorrow :)

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.

2 participants