feat(aiostreams): enable persistent data storage via dataDir

This commit is contained in:
tux
2026-02-07 05:10:00 +05:30
parent 2b632b6bef
commit c4f96accc9

View File

@@ -14,6 +14,12 @@ in {
default = 3000; default = 3000;
}; };
dataDir = mkOption {
type = types.path;
default = "/var/lib/aiostreams";
description = "Directory to store persistent AIOStreams data";
};
environment = mkOption { environment = mkOption {
type = with types; attrsOf str; type = with types; attrsOf str;
default = {}; default = {};
@@ -35,6 +41,9 @@ in {
environment = cfg.environment; environment = cfg.environment;
environmentFiles = cfg.environmentFiles; environmentFiles = cfg.environmentFiles;
volumes = [
"${cfg.dataDir}:/app/data"
];
}; };
services.nginx.virtualHosts = { services.nginx.virtualHosts = {