From ce332177beda7f43b27480f6099f33ad3d40dccf Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Mon, 27 Feb 2023 13:21:17 +0000 Subject: [PATCH] rtl: set DB_DIRECTORY_PATH This prevents RTL from trying to create a database in the directory that contains the RTL executable. --- modules/rtl.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/rtl.nix b/modules/rtl.nix index 19bc118..aa6c5bf 100644 --- a/modules/rtl.nix +++ b/modules/rtl.nix @@ -191,6 +191,7 @@ in { optional cfg.nodes.lnd.enable "lnd.service"; after = requires; environment.RTL_CONFIG_PATH = cfg.dataDir; + environment.DB_DIRECTORY_PATH = cfg.dataDir; serviceConfig = nbLib.defaultHardening // { ExecStartPre = [ (nbLib.script "rtl-setup-config" ''