Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add how to reference custom packages in modules. #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/guides/lib/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ 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 (i.e. `packages.my-package`). Also, from inside a module you can reference it via `pkgs.${namespace}` (i.e. `pkgs.plusultra.my-package`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can probably reword this to mention how this is done as a part of overlays which are why system configuration receives these packages as a namespaced collection on pkgs.