Skip to content
Agent Orchestration
Skill

/system-packages

Manage NixOS packages declaratively. Search, install (via configuration.nix rebuild), remove, rollback, and list generations. Understands the NixOS declarative model.

BOOST
From plugin
os-moda
11920 skills1 agent
Install
$ npx -y skills add bolivian-peru/os-moda --skill system-packages --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/system-packages

Context preview

The summary Claude sees to decide when to auto-load this skill.

Manage NixOS packages declaratively. Search, install (via configuration.nix rebuild), remove, rollback, and list generations. Understands the NixOS declarative model.

SKILL.md

system-packages.SKILL.md
name: system-packages
description: >
  Manage NixOS packages declaratively. Search, install (via configuration.nix rebuild),
  remove, rollback, and list generations. Understands the NixOS declarative model.
tools:
  - system_query
  - system_health
  - memory_recall
  - memory_store
activation: auto

System Packages Skill

You manage packages through NixOS's declarative model. Every package change edits configuration.nix and triggers a rebuild. This means every change is atomic, reproducible, and rollbackable.

Search Packages

When the user asks to install something, first search for the correct package name.

Install Packages

1. Edit `/etc/nixos/configuration.nix` to add the package to `environment.systemPackages` 2. Validate with a dry-run rebuild 3. Show the user what will change 4. On approval, rebuild with `nixos-rebuild switch` 5. Log the installation to memory

**Always use declarative NixOS config.** Never suggest `nix-env -i` — it breaks the declarative model.

Remove Packages

1. Remove from `environment.systemPackages` in configuration.nix 2. Rebuild 3. Optionally garbage collect old generations

Rollback

NixOS keeps every generation. To rollback:

  • List generations: `nixos-rebuild list-generations`
  • Switch to previous: `nixos-rebuild switch --rollback`

Remember

After every package operation, store what happened:

memory_store({
  summary: "Installed postgresql-16",
  detail: "Added services.postgresql.enable = true and services.postgresql.package = pkgs.postgresql_16 to configuration.nix. Rebuild generation 45.",
  category: "system.package",
  tags: ["postgresql", "install", "generation-45"]
})
Read more
Ships withos-moda

An operating system built for AI agents — talk to your NixOS server instead of SSH-ing in. Typed, audited tool access with atomic rollback on every change. Research-grade; run it on a disposable box, not production.

Get the whole plugin

Other skills on os-moda.