From f72e47c267e8445dd264a42444d8cda00e176ceb Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 27 Dec 2025 03:01:26 +0100 Subject: [PATCH] Give storage location to all services --- nix/modules/default/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nix/modules/default/default.nix b/nix/modules/default/default.nix index c31697b42..0203826f7 100644 --- a/nix/modules/default/default.nix +++ b/nix/modules/default/default.nix @@ -197,6 +197,14 @@ in CONFIG_PATH = configFile; CONFIG_READONLY = 1; } + // ( + if cfg.cdnPath != null then + { + STORAGE_LOCATION = cfg.cdnPath; + } + else + { } + ) ); serviceConfig = { ExecStart = "${cfg.package}/bin/start-api"; @@ -217,6 +225,14 @@ in CONFIG_PATH = configFile; CONFIG_READONLY = 1; } + // ( + if cfg.cdnPath != null then + { + STORAGE_LOCATION = cfg.cdnPath; + } + else + { } + ) ); serviceConfig = { ExecStart = "${cfg.package}/bin/start-gateway";