diff --git a/nix/nginx.nix b/nix/nginx.nix index 9899826a..0f1be3d6 100644 --- a/nix/nginx.nix +++ b/nix/nginx.nix @@ -100,7 +100,8 @@ in if [[ ! -d "${config.dataDir}" ]]; then mkdir -p "${config.dataDir}" fi - nginx -p "$(pwd)" -c ${config.configFile} -e /dev/stderr + ln -sfn ${config.configFile} "${config.dataDir}/nginx.conf" + nginx -p "$(pwd)" -c "${config.dataDir}/nginx.conf" -e /dev/stderr ''; }; in