2024-01-09 14:16:29 +01:00
|
|
|
{elib, ...}: let
|
|
|
|
inherit
|
|
|
|
(elib)
|
2023-06-15 23:06:35 +02:00
|
|
|
nfsVolume
|
2024-01-09 14:16:29 +01:00
|
|
|
nomadJob
|
|
|
|
;
|
|
|
|
in {
|
2023-06-15 23:06:35 +02:00
|
|
|
resource."nomad_volume"."jellyfin-cache" = nfsVolume {
|
|
|
|
volume_name = "jellyfin-cache";
|
|
|
|
access_mode = "single-node-writer";
|
|
|
|
server = "blowhole.hosts.in.redalder.org";
|
2024-01-09 14:16:29 +01:00
|
|
|
share = "/mnt/jimmy/infrastructure/jellyfin/cache";
|
|
|
|
mount_flags = ["hard" "vers=4.2" "rsize=131072" "wsize=131072" "async"];
|
2023-06-15 23:06:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
resource."nomad_volume"."jellyfin-config" = nfsVolume {
|
|
|
|
volume_name = "jellyfin-config";
|
|
|
|
access_mode = "single-node-writer";
|
|
|
|
server = "blowhole.hosts.in.redalder.org";
|
2024-01-09 14:16:29 +01:00
|
|
|
share = "/mnt/jimmy/infrastructure/jellyfin/config";
|
|
|
|
mount_flags = ["hard" "vers=4.2" "rsize=131072" "wsize=131072" "async"];
|
2023-06-15 23:06:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
resource."nomad_volume"."jellyfin-media" = nfsVolume {
|
|
|
|
volume_name = "jellyfin-media";
|
|
|
|
access_mode = "single-node-writer";
|
|
|
|
server = "blowhole.hosts.in.redalder.org";
|
|
|
|
share = "/mnt/kyle/infrastructure/jellyfin/media";
|
2024-01-09 14:16:29 +01:00
|
|
|
mount_flags = ["hard" "vers=4.2" "rsize=131072" "wsize=131072" "async"];
|
2023-06-15 23:06:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
resource."nomad_job"."jellyfin" = nomadJob {
|
|
|
|
jobspec = ./job.hcl;
|
|
|
|
};
|
|
|
|
}
|