From 19c95a7d7013c7007ff01d233d08b61defb731a7 Mon Sep 17 00:00:00 2001 From: satr14 Date: Fri, 1 May 2026 07:50:17 +0700 Subject: [PATCH] fix perms error --- modules/system/homelab/docs.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/system/homelab/docs.nix b/modules/system/homelab/docs.nix index a82219c..2d9ff74 100644 --- a/modules/system/homelab/docs.nix +++ b/modules/system/homelab/docs.nix @@ -3,6 +3,10 @@ sandbox = "docs-sandbox.${homelab.domain}"; data-dir = "/mnt/data/apps/cryptpad"; in { + systemd.tmpfiles.rules = [ + "d ${data-dir} 0750 cryptpad cryptpad -" + ]; + services.cryptpad = { enable = true; settings = { @@ -22,9 +26,6 @@ in { logPath = "${data-dir}/logs"; }; }; - - systemd.services.cryptpad.serviceConfig = { - ReadWritePaths = [ data-dir ]; - ProtectMountPoints = false; - }; -} \ No newline at end of file + + systemd.services.cryptpad.serviceConfig.ReadWritePaths = [ data-dir ]; +}