From 14b19cf62d022812f1bc39be849efa2984016ed3 Mon Sep 17 00:00:00 2001 From: Klaus Frank <2544867+agowa@users.noreply.github.com> Date: Fri, 5 Dec 2025 16:20:14 +0100 Subject: [PATCH] docs: Make nixpkgs.pkgs defaultText c'n'p-able Currently the defaultText of nixpkgs.pkgs uses the cfg variable. The search.nixos.org page is not able to resolve that variable. Replacing "cfg" within this docs text with the non-aliased "config.nixpkgs". --- nixos/modules/misc/nixpkgs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix index 12b4a6453449..449a08a97b61 100644 --- a/nixos/modules/misc/nixpkgs.nix +++ b/nixos/modules/misc/nixpkgs.nix @@ -119,7 +119,7 @@ in pkgs = lib.mkOption { defaultText = lib.literalExpression '' import "''${nixos}/.." { - inherit (cfg) config overlays localSystem crossSystem; + inherit (config.nixpkgs) config overlays localSystem crossSystem; } ''; type = pkgsType;