diff --git a/modules/server/containers/apps/excalidraw.nix b/modules/server/containers/apps/excalidraw.nix new file mode 100644 index 0000000..77e7543 --- /dev/null +++ b/modules/server/containers/apps/excalidraw.nix @@ -0,0 +1,35 @@ +{ config, containerCfg, pkgs, lib, builder, name,... }: +let + version = "latest"; + serverCfg = config.syscfg.server; +in { + runtime = { + paths = [{ + path="${serverCfg.path.data.path}/excalidraw/"; + owner = "root:root"; + mode = "0777"; + }]; + + containers = { + server = builder.mkContainer { + subdomain = containerCfg.subdomain; + image = "excalidraw/excalidraw:${version}"; + port = 80; + tmpfs = true; + # secret = name; + extraEnv = { + NODE_ENV="production"; + VITE_APP_WS_SERVER_URL="${containerCfg.subdomain}.${serverCfg.domain}"; + }; + extraLabels = { + }; + overrides = { + volumes = [ + "${serverCfg.path.data.path}/excalidraw:/app/data" + ]; + }; + }; + }; + }; + +}