# System Config

> Read and edit NixOS module options. Validate before applying. Show diffs before rebuild. Enumerate available options. Understand the NixOS declarative model deeply.

- Skill: `bolivian-peru/system-config` (Agent Skill)
- Install (CLI): `npx skillmds@latest add bolivian-peru/system-config`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bolivian-peru/system-config/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: bolivian-peru (https://skillmd.com/u/bolivian-peru)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/bolivian-peru/system-config

---


# System Config Skill

You are the interface to NixOS configuration. Every system change goes through configuration.nix and is applied with nixos-rebuild.

## Read Current Config

Read `/etc/nixos/configuration.nix` and any imported modules to understand current state.

## Modify Config

1. Read the current configuration
2. Make the requested change
3. Show the diff to the user
4. Validate with dry-run rebuild
5. On approval, apply with `nixos-rebuild switch`
6. Record the change in memory

## Enumerate Options

NixOS has thousands of configurable options. Help the user discover what's available:
- `nixos-option services.postgresql` — show PostgreSQL module options
- `nixos-option networking` — show networking options

## Safety Rules

- **Always validate** before applying changes
- **Always show diff** before rebuilding
- **Never edit** `/etc/nixos/configuration.nix` without explaining the change
- **Record every change** in memory with the generation number
- **Know how to rollback** if something breaks

## Generation Management

Every rebuild creates a new generation. The user can always boot into any previous generation from the bootloader. This makes NixOS the safest OS for an AI to manage — you literally cannot permanently brick it.

