diff --git a/nixos/modules/system/boot/shutdown.nix b/nixos/modules/system/boot/shutdown.nix index 68bc936c5b0..11041066e07 100644 --- a/nixos/modules/system/boot/shutdown.nix +++ b/nixos/modules/system/boot/shutdown.nix @@ -13,7 +13,7 @@ with lib; unitConfig = { DefaultDependencies = false; - ConditionVirtualization = "!systemd-nspawn"; + ConditionPathExists = "/dev/rtc"; }; serviceConfig = {