Logo di Nixpkgs Patched

Nixpkgs Patched

CommunityPopolare
ryan4yin
nixpkgs-patched

Use when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that branch from this nix-config flake, including a WORKAROUNDS.md row whose removal condition is carrying the patch.

Panoramica

Pubblicato daryan4yin
Repositorynix-config
Nome della skillnixpkgs-patched
Stelle
2.1K
Fork
104
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da ryan4yin su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Nixpkgs Patched in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/ryan4yin/nix-config/tree/main/.agents/skills/nixpkgs-patched
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ryan4yin/nix-config.git /tmp/nix-config
mkdir -p .claude/skills
cp -r /tmp/nix-config/.agents/skills/nixpkgs-patched .claude/skills/nixpkgs-patched
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Nixpkgs Patched in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Nixpkgs Patched non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Nixpkgs Patched non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Carrying a nixpkgs patch

This is a temporary supply-chain change across two repositories:

text
upstream nixpkgs PR → personal fork branch → nix-config lock entry → host/package validation

Keep the upstream commit identifiable, keep a rollback ref, and never activate a host merely because the fork branch pushed successfully.

1. Confirm the exact target

Before changing either repository, confirm the remotes, branch, PR commits, and local work:

bash
git remote -v
git status --short
git branch --show-current
git fetch origin nixos-unstable
git fetch fork nixos-unstable-patched
gh pr view <pr> --repo NixOS/nixpkgs --json state,baseRefName,commits

The intended fork is ryan4yin/nixpkgs and the intended branch is nixos-unstable-patched. In ~/src/nixpkgs, origin is NixOS/nixpkgs and the fork is fork (or ryan4yin); never push the patched branch to origin. Confirm the names; do not infer a remote from its position in the list.

2. Refresh the patched branch

Do this in the nixpkgs checkout (~/src/nixpkgs), preserving any existing work:

  1. Save a rollback ref to the current patched tip.
  2. Align the branch with the current origin/nixos-unstable.
  3. Cherry-pick the exact PR commit(s), using -x so the upstream source remains recorded.
  4. Resolve conflicts deliberately and inspect the complete diff against upstream.

If alignment rewrites the remote branch, this is an impactful GitHub operation: preview the new history and push only with --force-with-lease, never --force. Stop if the remote changed in an unexpected way. An upstream PR targets master unless it says otherwise, while the patched branch tracks nixos-unstable; confirm the PR's base commit is contained in nixos-unstable before cherry-picking, and stop if the patch depends on unreleased changes. If the PR depends on another PR, review both changes and record their order.

3. Validate before publishing

For a local patched-branch update, validate only the package(s) the user intends to use. Use normal Nix commands from the nixpkgs checkout, such as nix build .#<package> or a specifically requested passthru.tests.<name>. These commands build their required dependencies; do not separately build or test unrelated packages just because they changed on the branch.

nixpkgs-review is for reviewing an upstream nixpkgs PR. Do not use it to validate ordinary local package use or a patched-branch lock update. For this workflow, inspect the diff and commit list:

bash
git diff --check
git log --oneline --decorate origin/nixos-unstable..HEAD

Run package builds or tests only when the user requests them or when the selected package is needed to complete the requested local verification. Record which package and checks were actually run; never imply that unrelated packages or platforms were covered.

4. Publish and consume it

After authorization and validation:

bash
git push --force-with-lease fork nixos-unstable-patched
git ls-remote fork refs/heads/nixos-unstable-patched

Then in this repository, update only the patched input and inspect the lock diff:

bash
nix flake update nixpkgs-patched
git diff -- flake.lock
just test
just eval-host <affected-host>
just build-host <affected-host>

The nix-config eval and host-build commands validate this configuration. They are not a reason to build every package in the patched nixpkgs branch. Run a host build only for a host that consumes the changed package and only when the user asks for that validation.

Keep the nixpkgs fork change, lock update, and unrelated configuration changes separate. Do not run just niri, just local, or a remote deployment from this skill; activation is a separate authorized step in nix-config-update.

5. Roll back

If validation fails, restore the fork branch from the saved ref, update the lock back to the previous revision, and re-run the affected checks. If the branch was already pushed, restoring it is another impactful remote change: confirm the current remote tip and use --force-with-lease.

Domande frequenti

Cosa fa la skill IA Nixpkgs Patched?

Use when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that branch from this nix-config flake, including a WORKAROUNDS.md row whose removal condition is carrying the patch.

Perché usare Nixpkgs Patched su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Nixpkgs Patched è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Nixpkgs Patched in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ryan4yin/nix-config/tree/main/.agents/skills/nixpkgs-patched. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Nixpkgs Patched?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Nixpkgs Patched?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Nixpkgs Patched: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Nixpkgs Patched è gratuita?

Sì. È pubblicata su GitHub da ryan4yin con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇