Trigger deploy service after nixos-rebuild in update scripts

nixos-rebuild switch does not re-run oneshot services automatically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
randogoth 2026-05-14 13:55:21 +03:00
parent bb41c4f82a
commit 09ee1932a2

View file

@ -48,6 +48,7 @@ let
fi fi
echo "${site.name}: updated $OLD -> $NEW, rebuilding" echo "${site.name}: updated $OLD -> $NEW, rebuilding"
nixos-rebuild switch --flake /etc/nixos#bucur nixos-rebuild switch --flake /etc/nixos#bucur
systemctl start deploy-${site.name}
''; '';
in in
{ {