nixos/nixpkgs: show definition files in config assertion

This commit is contained in:
Matt Sturgeon
2024-09-20 09:25:37 +01:00
parent 1bd4da1848
commit 6d9dfef94f
2 changed files with 7 additions and 0 deletions

View File

@@ -387,6 +387,9 @@ in
Current value:
${lib.generators.toPretty { multiline = true; } cfg.config}
Defined in:
${lib.concatMapStringsSep "\n" (file: " - ${file}") opt.config.files}
'';
}
];

View File

@@ -17,6 +17,7 @@ let
nixpkgs.buildPlatform = "aarch64-linux";
};
externalPkgsWithConfig = {
_file = "ext-pkgs-config.nix";
nixpkgs.pkgs = pkgs;
nixpkgs.config.allowUnfree = true;
};
@@ -122,6 +123,9 @@ lib.recurseIntoAttrs {
{
allowUnfree = true;
}
Defined in:
- ext-pkgs-config.nix
''];
assert getErrors {
nixpkgs.localSystem = pkgs.stdenv.hostPlatform;