lol

doc/manual: replace bad advice about package options and overlays (#371513)

authored by

Silvan Mosberger and committed by
GitHub
c8867b89 18e52685

+1 -1
+1 -1
nixos/doc/manual/development/option-declarations.section.md
··· 99 99 100 100 Creates an Option attribute set for an option that specifies the package a module should use for some purpose. 101 101 102 - **Note**: You shouldn’t necessarily make package options for all of your modules. You can always overwrite a specific package throughout nixpkgs by using [nixpkgs overlays](https://nixos.org/manual/nixpkgs/stable/#chap-overlays). 102 + **Note**: You should make package options for your modules, where applicable. While one can always overwrite a specific package throughout nixpkgs by using [nixpkgs overlays](https://nixos.org/manual/nixpkgs/stable/#chap-overlays), they slow down nixpkgs evaluation significantly and are harder to debug when issues arise. 103 103 104 104 The package is specified in the third argument under `default` as a list of strings 105 105 representing its attribute path in nixpkgs (or another package set).