From 17c0fce5d9c9afaedbe6704b5617ca640a2d99db Mon Sep 17 00:00:00 2001 From: Charlot Shaw <141575226+charlot-shaw@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:56:43 -0600 Subject: [PATCH] Add usage example to package documentation Add an example and a clarifying sentence to packages --- src/content/docs/guides/lib/packages.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/content/docs/guides/lib/packages.md b/src/content/docs/guides/lib/packages.md index 049be37..2fedd19 100644 --- a/src/content/docs/guides/lib/packages.md +++ b/src/content/docs/guides/lib/packages.md @@ -44,4 +44,11 @@ stdenv.mkDerivation { ``` This package will be made available on your flake's `packages` output with the same name as the -directory that you created. +directory that you created, under your `namespace`. + +```nix +# Example, to add a package named foo under namespace bar in the configuration for a home. +home.packages = [ + pkgs.bar.foo +]; +```