feat(nix): add flake, CI/CD, Dockerfile, and project docs#1
Open
jamesbrink wants to merge 1 commit intojereanon:developfrom
Open
feat(nix): add flake, CI/CD, Dockerfile, and project docs#1jamesbrink wants to merge 1 commit intojereanon:developfrom
jamesbrink wants to merge 1 commit intojereanon:developfrom
Conversation
- Nix flake with crane build, clippy, cargoFmt, and cargoTest checks - rust-overlay for stable Rust toolchain (matching upstream) - treefmt-nix for Nix formatting, crane cargoFmt for Rust formatting - Docker image via buildLayeredImage (Linux) and native Dockerfile - GitHub Actions CI: fmt, clippy, test, Docker build/push to ghcr.io - NixOS and nix-darwin service modules - Dev shell with cargo-watch, cargo-edit, rust-analyzer - Overlay and package outputs for all 4 platforms - README with badges, Nix usage docs, and service module examples - CLAUDE.md, AGENTS.md, .envrc, rust-toolchain.toml, rustfmt.toml
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.
Summary
cargoFmt, andcargoTestchecks across all 4 platforms (x86_64-linux,aarch64-linux,x86_64-darwin,aarch64-darwin)cargo fmt --check, clippy, tests, Docker build/push to ghcr.iorust:1-bookwormbuilder,debian:bookworm-slimruntime)buildLayeredImage(Linux only)nixosModules.default,darwinModules.default)overlays.default) for easy integration into other flakesTest plan
nix flake checkpasses (build, clippy, fmt, tests, treefmt)nix buildproduces working binary with config.example.tomlnix build .#dockerImagebuilds Docker image (Linux)docker build .builds via native Dockerfilenix developprovides working dev shell