skills/system-packages/SKILL.md
Manage NixOS packages declaratively. Search, install (via configuration.nix rebuild), remove, rollback, and list generations. Understands the NixOS declarative model.
npx skillsauth add bolivian-peru/os-moda system-packagesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
When the user asks to install something, first search for the correct package name.
/etc/nixos/configuration.nix to add the package to environment.systemPackagesnixos-rebuild switchAlways use declarative NixOS config. Never suggest nix-env -i — it breaks the declarative model.
environment.systemPackages in configuration.nixNixOS keeps every generation. To rollback:
nixos-rebuild list-generationsnixos-rebuild switch --rollbackAfter 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"]
})
devops
Multi-perspective risk analysis using structured persona debate before deploying changes
development
Build software via spec-driven development (github/spec-kit). Whenever the user asks for a feature larger than a one-line tweak, scaffold a spec-kit project, capture WHAT + WHY, declare tech stack, break into tasks, then iterate the implementation until tests pass.
data-ai
Monitor system health: CPU, memory, disk, network, processes, services, and logs. Present data naturally. Correlate issues across subsystems. Alert on thresholds. Diagnose root causes.
development
Read and edit NixOS module options. Validate before applying. Show diffs before rebuild. Enumerate available options. Understand the NixOS declarative model deeply.