From 38508c2c6e54a85750ad511b38e68e2043fc0b39 Mon Sep 17 00:00:00 2001 From: nelind Date: Sat, 30 May 2026 00:37:09 +0200 Subject: [PATCH] feat(nix): base the data storage path defaults on the dataDir option --- module.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module.nix b/module.nix index 6e17a6c..9d5251f 100644 --- a/module.nix +++ b/module.nix @@ -116,7 +116,8 @@ in storage = { path = mkOption { type = types.path; - default = "/var/lib/tranquil-pds/blobs"; + default = "${cfg.dataDir}/blobs"; + defaultText = "\${cfg.dataDir}/blobs"; description = "Directory for storing blobs"; }; }; @@ -124,7 +125,8 @@ in tranquil_store = { data_dir = mkOption { type = types.path; - default = "/var/lib/tranquil-pds/store"; + default = "${cfg.dataDir}/store"; + defaultText = "\${cfg.dataDir}/store"; description = "Directory for tranquil-store files"; }; };