Claude/review latest commit files 011 c uo yy2a6oh19nm4 s mi cx a#3620
Closed
MicrolithInc wants to merge 3 commits intoLinuxCNC:masterfrom
Closed
Conversation
This commit adds complete Nix flake support for building and deploying LinuxCNC on NixOS with proper real-time kernel configuration. New files: - flake.nix: Main Nix flake with LinuxCNC package definition and NixOS module * Includes all build dependencies (boost, python3, tcl/tk, gtk3, etc.) * Configures user-space real-time (uspace) build * Provides NixOS module for RT-PREEMPT kernel setup * Sets up real-time performance tuning (CPU isolation, governor, etc.) * Includes PAM limits for real-time priority - flake.lock: Lock file pinning dependency versions * nixpkgs: nixos-unstable * flake-utils: for cross-system support * flake-compat: for backward compatibility - NIXOS_SETUP.md: Comprehensive setup and configuration guide * Explains RT-PREEMPT kernel requirements and tuning * Hardware support documentation (parallel port, Mesa, EtherCAT) * Performance testing and troubleshooting * Latency testing guidelines - QUICKSTART_NIX.md: Quick start guide for users * Three methods: direct run, dev shell, system installation * Step-by-step NixOS system integration * Verification and testing procedures - nixos-configuration-example.nix: Example NixOS configuration * Shows how to enable LinuxCNC service * Real-time kernel configuration * User group setup * System tuning recommendations Modified files: - default.nix: Updated to use flake-compat for backward compatibility - shell.nix: Updated to use flake-compat for nix-shell users - .gitignore: Added Nix-specific entries (result, result-*, .direnv/) Key features: - Full dependency management via Nix - Real-time kernel (RT-PREEMPT) support - Proper PAM limits for real-time priority - CPU isolation and performance governor - Hardware access configuration (parallel port, udev rules) - Development environment with all build tools - Simulation mode support for testing without hardware Usage: - `nix run` - Run LinuxCNC directly - `nix develop` - Enter development shell - `nix build` - Build LinuxCNC package - NixOS module for system-wide installation with RT kernel This enables LinuxCNC to run on NixOS with proper real-time performance required for CNC machine control. The RT-PREEMPT kernel provides the deterministic latency needed for precise motion control.
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.
No description provided.