From 73f3fe4839a09cb95c0b27ecaa12030e37b96a07 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Thu, 23 Jan 2025 15:50:31 +0100 Subject: [PATCH] nixos/activation: log output from pre-switch checks on stderr --- nixos/modules/system/activation/pre-switch-check.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/system/activation/pre-switch-check.nix b/nixos/modules/system/activation/pre-switch-check.nix index 60ccd448d155..e8640a0db3f2 100644 --- a/nixos/modules/system/activation/pre-switch-check.nix +++ b/nixos/modules/system/activation/pre-switch-check.nix @@ -10,8 +10,8 @@ let # pre-switch check ${name} if ! ( ${text} - ); then - echo "Pre-switch check '${name}' failed" + ) >&2 ; then + echo "Pre-switch check '${name}' failed" >&2 exit 1 fi '') config.system.preSwitchChecks