From 9f01253d924ef11f1ca46f8ca635190a4e35775b Mon Sep 17 00:00:00 2001 From: alexion Date: Fri, 28 Aug 2026 10:09:24 -0400 Subject: [PATCH] docs(nix): use host forwarding example --- docs/nix.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/nix.md b/docs/nix.md index 78a7b90..942abc0 100644 --- a/docs/nix.md +++ b/docs/nix.md @@ -131,22 +131,22 @@ Use: ### Use `@` for forwarding wrappers -Use `@` when a wrapper passes the complete argument set to another module function. +Use `@` when a wrapper passes its complete argument set to another function. Name each argument the wrapper uses before `...`. Forward the bound argument set unchanged. Avoid: ```nix -{ dotfiles, ... }: -dotfiles.guest { name = "sample"; } { inherit dotfiles; } +{ hostName, system ? "x86_64-linux", ... }: +mkHost { inherit hostName system; } ``` Use: ```nix -args@{ dotfiles, ... }: -dotfiles.guest { name = "sample"; } args +args@{ hostName, ... }: +mkHost args ``` ## `let` Bindings