I’m updating my machines using nixos-rebuild --target-host ... --flake .#... switch
from a single machines. All machines are accessed through VPN (Nebula). When Nebula’s configuration (or its dependencies) is updated, nixos-rebuild
restarts systemd’s service for nebula and network is temporary unavailable. This causes nixos-rebuild
to hang and eventually timeout.
Is there a way to handle this scenario more gracefully? Failing fast would be better than nothing (I can always run nixos-rebuild
twice), however, making nixos-rebuild
work directly (or using different tool) would be the best