Loading
nixos/switchable-system: improve switch-inhibitor pre-check
The check ran `realpath /run/current-system` under errexit, so a missing current-system symlink aborted the script. Drop the realpath calls (the -f test and jq already follow symlinks) and use a static store path for the empty fallback instead of mktemp/trap. Also exempt dry-activate, which makes no state changes and was being blocked from showing its diff, and let jq fail loudly on malformed inhibitor JSON instead of silently treating it as empty.