diff --git a/nixos/tests/restart-by-activation-script.nix b/nixos/tests/restart-by-activation-script.nix index 0ac079e0101e..fdab892b7218 100644 --- a/nixos/tests/restart-by-activation-script.nix +++ b/nixos/tests/restart-by-activation-script.nix @@ -7,6 +7,8 @@ import ./make-test-python.nix ({ pkgs, ...} : { nodes.machine = { pkgs, ... }: { imports = [ ../modules/profiles/minimal.nix ]; + system.switch.enable = true; + systemd.services.restart-me = { wantedBy = [ "multi-user.target" ]; serviceConfig = {