Nix Rebuild

🌐Community
by edmundmiller · vlatest · Repository

Nix Rebuild automatically rebuilds your NixOS environment for consistent and reproducible builds, saving time and preventing configuration drift.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add nix-rebuild npx -- -y @trustedskills/nix-rebuild
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "nix-rebuild": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/nix-rebuild"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The nix-rebuild skill allows an AI agent to trigger a rebuild of Nix derivations, effectively updating software packages and configurations managed by Nix. This includes building new versions of existing packages or creating entirely new ones based on defined configuration files. The skill ensures reproducible builds and consistent environments across different systems.

When to use it

  • Software updates: When you need to update a specific package in your Nix environment, triggering a rebuild ensures the latest version is installed.
  • Configuration changes: After modifying your configuration.nix or other Nix configuration files, a rebuild applies those changes.
  • Environment consistency: To guarantee consistent development environments across multiple machines by rebuilding from the same Nix configurations.
  • Automated deployments: As part of an automated deployment pipeline to ensure that all necessary components are built and deployed correctly.

Key capabilities

  • Triggers Nix derivation builds.
  • Updates software packages based on configuration files.
  • Ensures reproducible build environments.
  • Applies changes from configuration.nix.

Example prompts

  • "Rebuild my system with the latest version of Firefox."
  • "Apply the changes I made to my Nix configuration file."
  • “Build and install the package defined in /path/to/my/package.nix

Tips & gotchas

  • Requires a working Nix environment to be set up beforehand.
  • The agent needs appropriate permissions to modify Nix configurations and trigger builds.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
edmundmiller
Installs
26

🌐 Community

Passed automated security scans.