Skip to content

Add Nix flake with CPU/CUDA/Metal builds and a NixOS module - #261

Merged
mcharytoniuk merged 5 commits into
mainfrom
nix-flake
Jul 19, 2026
Merged

Add Nix flake with CPU/CUDA/Metal builds and a NixOS module#261
mcharytoniuk merged 5 commits into
mainfrom
nix-flake

Conversation

@mcharytoniuk

@mcharytoniuk mcharytoniuk commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Adds a flake.nix: paddler packages (CPU default, CUDA on x86_64-linux, Metal on aarch64-darwin), a web-admin-panel build toggle, dev shell, and a NixOS module (services.paddler.balancer + single services.paddler.agent).

Copilot AI review requested due to automatic review settings July 19, 2026 14:22

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 support for building and running Paddler across CPU/CUDA/Metal targets, including a dev shell and a NixOS module for deploying the balancer and a single agent as systemd services.

Changes:

  • Introduces a flake.nix defining paddler packages (CPU default, optional CUDA, Metal), a headless variant, dev shell, formatter, and app entrypoint.
  • Adds a NixOS module exposing services.paddler.balancer and services.paddler.agent with systemd units and optional firewall openings.
  • Pins Nix dependencies via flake.lock (nixpkgs, flake-parts, crane, rust-overlay).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
flake.nix New flake outputs (packages/apps/devShell) plus an embedded NixOS module for running Paddler as services.
flake.lock Locks flake inputs to specific upstream revisions/hashes for reproducible evaluation/builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flake.nix Outdated
Comment thread flake.nix Outdated
@mcharytoniuk
mcharytoniuk merged commit 0dde2af into main Jul 19, 2026
5 of 6 checks passed
@mcharytoniuk
mcharytoniuk deleted the nix-flake branch July 19, 2026 19:36
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