mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 18:01:59 +01:00
4a29b6d8d3
Signed-off-by: magic_rb <magic_rb@redalder.org>
30 lines
808 B
Nix
30 lines
808 B
Nix
{
|
|
config',
|
|
pkgs,
|
|
elib,
|
|
vars,
|
|
...
|
|
}: let
|
|
inherit
|
|
(elib)
|
|
nfsVolume
|
|
nomadJob
|
|
;
|
|
in {
|
|
resource."nomad_volume"."minecraft-ftb-integrations" = nfsVolume {
|
|
access_mode = "single-node-writer";
|
|
volume_name = "minecraft-ftb-integrations";
|
|
server = "blowhole.hosts.in.redalder.org";
|
|
share = "/mnt/kyle/infrastructure/minecraft/ftb-integrations";
|
|
mount_flags = ["hard" "vers=4.2" "rsize=131072" "wsize=131072" "async"];
|
|
};
|
|
|
|
resource."nomad_job"."minecraft-ftb-integrations" = 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-integrations.config.system.build.toplevel;
|
|
};
|
|
};
|
|
}
|