From f60cb87572ec8ae260f9776bf8abfb3cf1c0026c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 28 Aug 2025 18:07:19 +0200 Subject: [PATCH] Add note about rebuilding --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 8084cfb..6a44382 100644 --- a/README.md +++ b/README.md @@ -380,3 +380,11 @@ Then clean garbage: ```sh sudo nix-collect-garbage -d ``` + +## Rebuilding + +From personal testing, running `nixos-rebuild switch` doesn't necessarily cause any downtime for users +if your website is behind Cloudflare. NixOS first builds everything it needs and only then, usually pretty +quickly, restarts (and adds, removes, etc) services as needed. This means your nginx **might** be down for +a very brief period, but if Cloudflare cannot connect to your server it will retry a couple of times. So at +most some requests will be very slightly delayed, but users should not see any errors on most rebuilds.