From 348b69d76be1009c12df1dbd8ef4553f3bda6412 Mon Sep 17 00:00:00 2001 From: nelind Date: Wed, 27 May 2026 02:03:21 +0200 Subject: [PATCH] feat(nix): ensure that tranquil-store path is always writable by the service user just like file blob storage --- module.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module.nix b/module.nix index 0621f15..22707b8 100644 --- a/module.nix +++ b/module.nix @@ -120,6 +120,14 @@ in description = "Directory for storing blobs"; }; }; + + tranquil_store = { + data_dir = mkOption { + type = types.path; + default = "/var/lib/tranquil-pds/store"; + description = "Directory for tranquil-store files"; + }; + }; }; }; @@ -165,11 +173,13 @@ in users.groups.${cfg.group} = { }; + # TODO: probably should split these out so only the directories that are actually used made and configured systemd.tmpfiles.settings."tranquil-pds" = lib.genAttrs [ cfg.dataDir cfg.settings.storage.path + cfg.settings.tranquil_store.data_dir ] (_: { d = {