From af6d0095f7f3eecc59223da6141ceb88b1a3e0a0 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Mon, 20 Apr 2020 20:12:31 +0300 Subject: [PATCH] nixos/tests: fix nginx-pubhtml test --- nixos/tests/nginx-pubhtml.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/nginx-pubhtml.nix b/nixos/tests/nginx-pubhtml.nix index 432913cb42d..6e1e605628e 100644 --- a/nixos/tests/nginx-pubhtml.nix +++ b/nixos/tests/nginx-pubhtml.nix @@ -2,6 +2,7 @@ import ./make-test-python.nix { name = "nginx-pubhtml"; machine = { pkgs, ... }: { + systemd.services.nginx.serviceConfig.ProtectHome = "read-only"; services.nginx.enable = true; services.nginx.virtualHosts.localhost = { locations."~ ^/\\~([a-z0-9_]+)(/.*)?$".alias = "/home/$1/public_html$2";