Loading
nixos/switchable-system: introduce a standard pre-switch check to prevent...
nixos/switchable-system: introduce a standard pre-switch check to prevent switching under certain conditions This commit introduces "switch inhibitors" which are derivations that prevent a switch of a system to a new configuration if those derivations don't have the same hash in both configurations. This means that we can for instance add the systemd and dbus derivations such that users will be instructed to reboot their system when those derivations have changed instead of switching. This feature should be used sparingly, but it can make NixOS more robust by avoiding users switching to a configuration that can make their system unstable (like major updates of systemd, or new versions of dbus since the dbus and dbus-broker daemons cannot be restarted). The user can still force the switch by setting an env var.