summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPizmovc <pizmovc@kalu.blue>2024-03-25 11:27:30 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-04-06 15:33:42 +0000
commitb7fae3195a46cf822a420401593a450aff0002bf (patch)
tree936f4f2ba97053e4bba9f242b3013b886b8a53ab
parentMerge pull request #301616 from NickCao/telegram-desktop-backport (diff)
downloadnixpkgs-origin/backport-298892-to-release-23.11.tar.gz
outline: Add localRootDir to ReadWritePathsorigin/backport-298892-to-release-23.11
The service can't write to the localRootDir if its set outside of its state directory, thus we have to manually mark it as writable. (cherry picked from commit 4a46f0d3e86b49a2f22565994dc3bf69f039bf59)
-rw-r--r--nixos/modules/services/web-apps/outline.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/outline.nix b/nixos/modules/services/web-apps/outline.nix
index 702755dfa2ab..09dd6f83f39a 100644
--- a/nixos/modules/services/web-apps/outline.nix
+++ b/nixos/modules/services/web-apps/outline.nix
@@ -783,6 +783,8 @@ in
# This working directory is required to find stuff like the set of
# 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 ];
};
};
};