From 215d144f770a25713d82552c9543c738f819a173 Mon Sep 17 00:00:00 2001 From: Cabia Rangris Date: Mon, 8 Apr 2024 17:06:27 +0400 Subject: [PATCH] nixos/outline: fix s3 storage (#302567) ReadWritePaths were crashing the unit due to non-existent folders on s3 configuration https://github.com/NixOS/nixpkgs/pull/298892#issuecomment-2042666854 --- nixos/modules/services/web-apps/outline.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/outline.nix b/nixos/modules/services/web-apps/outline.nix index 09dd6f83f39a..891d78d4045b 100644 --- a/nixos/modules/services/web-apps/outline.nix +++ b/nixos/modules/services/web-apps/outline.nix @@ -784,7 +784,7 @@ in # onboarding files: WorkingDirectory = "${cfg.package}/share/outline"; # In case this directory is not in /var/lib/outline, it needs to be made writable explicitly - ReadWritePaths = [ cfg.storage.localRootDir ]; + ReadWritePaths = lib.mkIf (cfg.storage.storageType == "local") [ cfg.storage.localRootDir ]; }; }; };