system-packages
Skill118 starsChanged 6 months agoApache-2.0View on GitHub
Manage NixOS packages declaratively. Search, install (via configuration.nix rebuild), remove, rollback, and list generations. Understands the NixOS declarative model.
In this repository21 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- app-deployerSkill
- deploy-ai-agentSkill
- drift-detectionSkill
- file-managerSkill
- flight-recorderSkill
- generation-timelineSkill
- morning-briefingSkill
- natural-language-configSkill
- network-managerSkill
- nix-optimizerSkill
- predictive-resourcesSkill
- scaled-swarm-predictSkill
- security-hardeningSkill
- self-healingSkill
- service-explorerSkill
- spec-driven-developmentSkill
- swarm-predictSkill
- system-configSkill
- system-monitorSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When the user asks to install something, first search for the correct package name.
- Very specific: line 30
Always use declarative NixOS config: Never suggest nix-env -i — it breaks the declarative model.
- Very specific: line 34
Remove from environment.systemPackages in configuration.nix
- Distinctive: line 46
After every package operation, store what happened:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Edit
/etc/nixos/configuration.nixto add the package toenvironment.systemPackages - Validate with a dry-run rebuild
- Show the user what will change
- On approval, rebuild with
nixos-rebuild switch - Log the installation to memory
Always use declarative NixOS config. Never suggest nix-env -i — it breaks the declarative model.
Remove Packages
- Remove from
environment.systemPackagesin configuration.nix - Rebuild
- 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"]
})Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

