nix-config-tools
ewan
March 7, 2026
nix-config-tools is a collection of Rust CLI utilities for managing NixOS and nix-darwin configurations. These tools help with common maintenance tasks like checking system health, managing flake inputs, and analyzing package changes between generations.
This package is now part of the @ewanc26/pkgs monorepo.
Tools Included
health-check
Pre-rebuild preflight checks for Nix configurations.
Checks performed:
- Nix daemon responsiveness
- Flake lock file validity
- Git repository cleanliness
- Age key presence
- SSH key availability
- Disk space availability
- Homebrew installation (macOS only)
flake-bump
Manage Nix flake input versions and update them selectively.
gen-diff
Compare package changes between NixOS generations.
server-config
Interactive server configuration tool for NixOS servers.
Features:
- Service toggles
- Storage device configuration
- Cockpit, Forgejo, Matrix, PDS, Cloudflare settings
- Read-only summary mode: nix run ~/Developer/Git/pkgs#server-config -- --show
Development
Architecture
Built with Rust using:
- dialoguer for interactive prompts
- console for terminal output formatting
- Standard library for system operations
The tools follow Unix conventions and integrate well with existing Nix workflows.
Migration from nix-config
These tools were originally developed in ~/.config/nix-config/tools/ and have been consolidated into the monorepo for better organization and cross-platform availability.
Licence
AGPL-3.0-only
Discussion in the ATmosphere