about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/nixos-rebuild/default.nix
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2024-01-19 12:29:04 +0100
committerGitHub <noreply@github.com>2024-01-19 12:29:04 +0100
commite0000983db23a86e03f1d6c467beef8532c3909d (patch)
treeea7dd7b327b033ac5d61591841135fb3cf797e3c /pkgs/os-specific/linux/nixos-rebuild/default.nix
parentf0e5bbdc5d87e4da2770180fda1bf60e33c9b2e3 (diff)
parentd059ce52ceb58edf61dfd55aaa4cab0546aac916 (diff)
Merge pull request #279170 from SuperSandro2000/nixos-repl-lib
nixos-rebuild: add lib to repl to make debugging even easier
Diffstat (limited to 'pkgs/os-specific/linux/nixos-rebuild/default.nix')
-rw-r--r--pkgs/os-specific/linux/nixos-rebuild/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/nixos-rebuild/default.nix b/pkgs/os-specific/linux/nixos-rebuild/default.nix
index 9a7cca68bfd72..4849ff75c54ab 100644
--- a/pkgs/os-specific/linux/nixos-rebuild/default.nix
+++ b/pkgs/os-specific/linux/nixos-rebuild/default.nix
@@ -1,4 +1,5 @@
-{ substituteAll
+{ callPackage
+, substituteAll
 , runtimeShell
 , coreutils
 , gnused
@@ -36,6 +37,7 @@ substituteAll {
   # run some a simple installer tests to make sure nixos-rebuild still works for them
   passthru.tests = {
     install-bootloader = nixosTests.nixos-rebuild-install-bootloader;
+    repl = callPackage ./test/repl.nix {};
     simple-installer = nixosTests.installer.simple;
     specialisations = nixosTests.nixos-rebuild-specialisations;
     target-host = nixosTests.nixos-rebuild-target-host;