diff options
author | Cabia Rangris <me+gh@cab.moe> | 2024-04-08 17:06:27 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 17:06:27 +0400 |
commit | 215d144f770a25713d82552c9543c738f819a173 (patch) | |
tree | a8c65660a103ecc5a302967a22312a604366f512 | |
parent | 1a641fb9100e61eca8da57cf180619573f946cc6 (diff) |
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
-rw-r--r-- | nixos/modules/services/web-apps/outline.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 ]; }; }; }; |