2023-07-18 23:11:45 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
config',
|
|
|
|
pkgs,
|
|
|
|
elib,
|
|
|
|
vars,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(elib)
|
|
|
|
nfsVolume
|
|
|
|
nomadJob
|
|
|
|
;
|
|
|
|
in {
|
2023-07-18 23:11:45 +02:00
|
|
|
resource."nomad_volume"."minecraft-ftb-infinity" = nfsVolume {
|
|
|
|
access_mode = "single-node-writer";
|
2024-03-02 22:05:30 +01:00
|
|
|
volume_name = "minecraft-ftb-infinity";
|
2023-07-18 23:11:45 +02:00
|
|
|
server = "blowhole.hosts.in.redalder.org";
|
|
|
|
share = "/mnt/kyle/infrastructure/minecraft/ftb-infinity";
|
2024-03-02 22:05:30 +01:00
|
|
|
mount_flags = ["hard" "vers=4.2" "rsize=131072" "wsize=131072" "async"];
|
2023-07-18 23:11:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
resource."nomad_job"."minecraft-ftb-infinity" = nomadJob {
|
|
|
|
jobspec = ./job.hcl;
|
|
|
|
vars = {
|
|
|
|
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";
|
|
|
|
flake_sha = vars.flake_sha;
|
|
|
|
store_path = config'.flake.nixngConfigurations.minecraft-ftb-infinity.config.system.build.toplevel;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|