From 114ef67cbb6ba6db805eadfc55ac8225ed4b7f6e Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 3 Nov 2024 10:35:20 +0100 Subject: [PATCH] Don't run hwclock if /etc/ is not writable --- nixos/modules/system/boot/shutdown.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/shutdown.nix b/nixos/modules/system/boot/shutdown.nix index 8cda7b3aabe8..3f25dca0cbf9 100644 --- a/nixos/modules/system/boot/shutdown.nix +++ b/nixos/modules/system/boot/shutdown.nix @@ -14,6 +14,7 @@ with lib; unitConfig = { DefaultDependencies = false; ConditionPathExists = "/dev/rtc"; + ConditionPathIsReadWrite = "/etc/"; }; serviceConfig = {