diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml
index 01f113198eb..75c8adbf45e 100644
--- a/nixos/doc/manual/release-notes/rl-2009.xml
+++ b/nixos/doc/manual/release-notes/rl-2009.xml
@@ -879,12 +879,23 @@ php.override {
Nginx web server now starting with additional sandbox/hardening options. By default, write access
- to services.nginx.stateDir is allowed. To allow writing to other folders,
+ to /var/log/nginx and /var/cache/nginx is allowed. To allow writing to other folders,
use systemd.services.nginx.serviceConfig.ReadWritePaths
systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ];
+
+ Nginx is also started with the systemd option ProtectHome = mkDefault true;
+ which forbids it to read anything from /home, /root
+ and /run/user (see
+ ProtectHome docs
+ for details).
+ If you require serving files from home directories, you may choose to set e.g.
+
+systemd.services.nginx.serviceConfig.ProtectHome = "read-only";
+
+