From c4f96accc91c216273bd0c6175adb061de609ed2 Mon Sep 17 00:00:00 2001 From: tux Date: Sat, 7 Feb 2026 05:10:00 +0530 Subject: [PATCH] feat(aiostreams): enable persistent data storage via dataDir --- modules/nixos/selfhosted/containers/aiostreams.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/nixos/selfhosted/containers/aiostreams.nix b/modules/nixos/selfhosted/containers/aiostreams.nix index 8fe3f4c..6b429e8 100644 --- a/modules/nixos/selfhosted/containers/aiostreams.nix +++ b/modules/nixos/selfhosted/containers/aiostreams.nix @@ -14,6 +14,12 @@ in { default = 3000; }; + dataDir = mkOption { + type = types.path; + default = "/var/lib/aiostreams"; + description = "Directory to store persistent AIOStreams data"; + }; + environment = mkOption { type = with types; attrsOf str; default = {}; @@ -35,6 +41,9 @@ in { environment = cfg.environment; environmentFiles = cfg.environmentFiles; + volumes = [ + "${cfg.dataDir}:/app/data" + ]; }; services.nginx.virtualHosts = {