File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 386386 `nixpkgs.config` options should be passed when creating the instance instead.
387387
388388 Current value:
389- ${ lib . generators . toPretty { multiline = true ; } opt . config }
389+ ${ lib . generators . toPretty { multiline = true ; } cfg . config }
390+
391+ Defined in:
392+ ${ lib . concatMapStringsSep "\n " ( file : " - ${ file } " ) opt . config . files }
390393 '' ;
391394 }
392395 ] ;
Original file line number Diff line number Diff line change 1616 nixpkgs . hostPlatform = "aarch64-linux" ;
1717 nixpkgs . buildPlatform = "aarch64-linux" ;
1818 } ;
19+ externalPkgsWithConfig = {
20+ _file = "ext-pkgs-config.nix" ;
21+ nixpkgs . pkgs = pkgs ;
22+ nixpkgs . config . allowUnfree = true ;
23+ } ;
1924 ambiguous = {
2025 _file = "ambiguous.nix" ;
2126 nixpkgs . hostPlatform = "aarch64-linux" ;
@@ -108,6 +113,20 @@ lib.recurseIntoAttrs {
108113 For a future proof system configuration, we recommend to remove
109114 the legacy definitions.
110115 '' ] ;
116+ assert builtins . trace ( lib . head ( getErrors externalPkgsWithConfig ) )
117+ getErrors externalPkgsWithConfig ==
118+ [ ''
119+ Your system configures nixpkgs with an externally created instance.
120+ `nixpkgs.config` options should be passed when creating the instance instead.
121+
122+ Current value:
123+ {
124+ allowUnfree = true;
125+ }
126+
127+ Defined in:
128+ - ext-pkgs-config.nix
129+ '' ] ;
111130 assert getErrors {
112131 nixpkgs . localSystem = pkgs . stdenv . hostPlatform ;
113132 nixpkgs . hostPlatform = pkgs . stdenv . hostPlatform ;
You can’t perform that action at this time.
0 commit comments