diff --git a/nixos/tests/hibernate.nix b/nixos/tests/hibernate.nix index 1bd229238587..9b840a4e14da 100644 --- a/nixos/tests/hibernate.nix +++ b/nixos/tests/hibernate.nix @@ -25,7 +25,7 @@ makeTest { ./common/auto-format-root-device.nix ]; - systemd.services.backdoor.conflicts = [ "sleep.target" ]; + powerManagement.powerDownCommands = "systemctl --no-block stop backdoor.service"; powerManagement.resumeCommands = "systemctl --no-block restart backdoor.service"; virtualisation.emptyDiskImages = [ (2 * config.virtualisation.memorySize) ];