From 9c8ab50117728e9b8f4c2c398b64e2b4e1dffe18 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Tue, 17 Feb 2026 22:34:38 +0100 Subject: [PATCH] nixos/test/hibernate: fix test The test was failing since https://github.com/NixOS/nixpkgs/pull/488429 due to the conflicts property on the backdoor keeping it from being restarted. From systemd's perspective both the stop and the start would happen in the same transaction, and it doesn't like that. This is fixed by instead shutting down the backdoor using a power-down command. --- nixos/tests/hibernate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ];