From 79b4c2f1fffa0f3f552dbda584fd2f11e82d5965 Mon Sep 17 00:00:00 2001 From: chaos Date: Fri, 10 May 2024 22:41:14 +0100 Subject: [PATCH] add more grocy envs variables --- hosts/hetzner-arm/containers/grocy/profiles/grocy.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/hetzner-arm/containers/grocy/profiles/grocy.nix b/hosts/hetzner-arm/containers/grocy/profiles/grocy.nix index 925b5d2..95badb7 100644 --- a/hosts/hetzner-arm/containers/grocy/profiles/grocy.nix +++ b/hosts/hetzner-arm/containers/grocy/profiles/grocy.nix @@ -31,8 +31,12 @@ cfg = config.services.grocy; in { phpEnv = { - GROCY_CONFIG_FILE = "/etc/grocy/config.php"; GROCY_DATAPATH = "${cfg.dataDir}"; + GROCY_CONFIG_FILE = "/etc/grocy/config.php"; + GROCY_DB_FILE = "${cfg.dataDir}/grocy.db"; + GROCY_STORAGE_DIR = "${cfg.dataDir}/storage"; + GROCY_PLUGIN_DIR = "${cfg.dataDir}/plugins"; + GROCY_CACHE_DIR = "${cfg.dataDir}/viewcache"; }; };