Skip to content

Commit

Permalink
nixos-rebuild: add lib to repl to make debugging even easier
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 6, 2024
1 parent 127579d commit 50d0eb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 50d0eb6

Please sign in to comment.