mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-12 23:48:25 +03:00
nixos-rebuild: add lib to repl to make debugging even easier
This commit is contained in:
parent
127579d6f4
commit
50d0eb6c9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user