diff options
Diffstat (limited to 'tests/vm.nix')
| -rw-r--r-- | tests/vm.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/vm.nix b/tests/vm.nix index cb6385d..b46b015 100644 --- a/tests/vm.nix +++ b/tests/vm.nix @@ -28,7 +28,13 @@ let # system, they survive the scenarios collecting garbage. system.extraDependencies = [ plan "${./fixtures.sh}" ]; nix.settings.substituters = lib.mkForce []; - environment.systemPackages = [ pkgs.git pkgs.rsync ]; + environment.systemPackages = [ + pkgs.git + pkgs.rsync + (pkgs.writeScriptBin "nixos-rebuild" (builtins.readFile ./nixos-rebuild.sh)) + ]; + # The stand-in replaces nixos-rebuild. + system.disableInstallerTools = true; # Only warnings and errors on the console, which ends up in the log. services.journald.extraConfig = lib.mkAfter "MaxLevelConsole=warning"; boot.initrd.systemd.contents."/etc/systemd/journald.conf".text = |
