1amends "../../config/Service.pkl"
2
3import "../../config/site.pkl" as site
4
5name = "Fusion"
6tagline = "Render node for Fusion Studio"
7launcher = false
8access = "admin"
9stageIsolation = "fresh"
10snapshots = false
11
12container {
13 build = "."
14 // Fusion Studio finds render nodes by UDP broadcast and connects back on 1144 and 49152-49159.
15 hostNetwork = !site.preview
16 cpu = 8000
17 memory = 16384
18 entrypoint = "/bin/sh"
19 args {
20 "-c"
21 """
22 Xvfb :99 -screen 0 1920x1080x24 -nolisten tcp -nolisten local &
23 while [ ! -S /tmp/.X11-unix/X99 ]; do sleep 0.1; done
24 DISPLAY=:99 exec ./FusionRenderNode
25 """
26 }
27 volumes {
28 // The Mac's SMB mount point, so comps resolve without path maps.
29 ["/Volumes/clover"] { src = if (site.preview) null else site.cloverRoot; readOnly = site.cloverReadOnly }
30 ["/Volumes/clover/Media"] { src = if (site.preview) null else site.mediaRoot; readOnly = site.mediaReadOnly }
31 // Preferences, including path maps and the license server.
32 ["/home/fusion"] {}
33 ["/nvidia/lib"] { src = "/run/opengl-driver/lib"; readOnly = true }
34 ["/etc/OpenCL/vendors"] { src = "/run/opengl-driver/etc/OpenCL/vendors"; readOnly = true }
35 ["/nix/store"] { src = "/nix/store"; readOnly = true }
36 }
37 devices { "/dev/nvidia0"; "/dev/nvidiactl"; "/dev/nvidia-uvm" }
38 env {
39 ["HOME"] = "/home/fusion"
40 ["LD_LIBRARY_PATH"] = "/nvidia/lib"
41 }
42}