lol

Merge pull request #257843 from tweag/nixos-nixpkgs-overlays-rewrite

nixos/nixpkgs: Rewrite overlays option docs

authored by

Robert Hensing and committed by
GitHub
d37aa6f4 a56d3e9d

+5 -9
+5 -9
nixos/modules/misc/nixpkgs.nix
··· 176 176 ''; 177 177 type = types.listOf overlayType; 178 178 description = lib.mdDoc '' 179 - List of overlays to use with the Nix Packages collection. 180 - (For details, see the Nixpkgs documentation.) It allows 181 - you to override packages globally. Each function in the list 182 - takes as an argument the *original* Nixpkgs. 183 - The first argument should be used for finding dependencies, and 184 - the second should be used for overriding recipes. 179 + List of overlays to apply to Nixpkgs. 180 + This option allows modifying the Nixpkgs package set accessed through the `pkgs` module argument. 185 181 186 - If `nixpkgs.pkgs` is set, overlays specified here 187 - will be applied after the overlays that were already present 188 - in `nixpkgs.pkgs`. 182 + For details, see the [Overlays chapter in the Nixpkgs manual](https://nixos.org/manual/nixpkgs/stable/#chap-overlays). 183 + 184 + If the {option}`nixpkgs.pkgs` option is set, overlays specified using `nixpkgs.overlays` will be applied after the overlays that were already included in `nixpkgs.pkgs`. 189 185 ''; 190 186 }; 191 187