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";