summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-27 03:01:26 +0100
committerRory& <root@rory.gay>2025-12-27 03:01:26 +0100
commitf72e47c267e8445dd264a42444d8cda00e176ceb (patch)
treea5d7d81c88dd91b8490916afc786ef118b3bd55b
parentAF_UNIX (diff)
downloadserver-ts-f72e47c267e8445dd264a42444d8cda00e176ceb.tar.xz
Give storage location to all services
-rw-r--r--nix/modules/default/default.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nix/modules/default/default.nix b/nix/modules/default/default.nix

index c31697b4..0203826f 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";