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