nixos-rebuild: add lib to repl to make debugging even easier

This commit is contained in:
Sandro Jäckel 2024-01-06 15:34:22 +01:00
parent 127579d6f4
commit 50d0eb6c9f
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -546,6 +546,7 @@ if [ "$action" = repl ]; then
- ${blue}config${reset} All option values
- ${blue}options${reset} Option data and metadata
- ${blue}pkgs${reset} Nixpkgs package set
- ${blue}lib${reset} Nixpkgs library functions
- other module arguments
- ${blue}flake${reset} Flake outputs, inputs and source info of $flake
@ -566,6 +567,7 @@ if [ "$action" = repl ]; then
configuration._module.specialArgs //
{
inherit (configuration) config options;
inherit (configuration.pkgs) lib;
inherit flake;
};
in builtins.seq scope builtins.trace motd scope