From 2c3ee7a8f3e36727297dfa44e3ce9fd70f7e6ad6 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Mon, 5 Jan 2026 12:19:07 +0200 Subject: [PATCH] nixos/switchable-system: improve error message in case switch inhibitors changed --- nixos/modules/system/activation/switchable-system.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/activation/switchable-system.nix b/nixos/modules/system/activation/switchable-system.nix index 380b52b6825d..c7261a8336a6 100644 --- a/nixos/modules/system/activation/switchable-system.nix +++ b/nixos/modules/system/activation/switchable-system.nix @@ -128,9 +128,10 @@ echo echo "The new configuration contains changes to packages that were" echo "listed as switch inhibitors." + echo "You probably want to run 'nixos-rebuild boot' and reboot your system." echo echo "If you really want to switch into this configuration directly, then" - echo "you can set NIXOS_NO_CHECK=1 to ignore these pre-switch checks." + echo "you can set NIXOS_NO_CHECK=1 to ignore pre-switch checks." echo echo "WARNING: doing so might cause the switch to fail or your system to become unstable." echo