dotfiles/terranix/containers/minecraft/enigmatica6/default.nix
magic_rb 311afc3087
Add enigmatica6 to terraform
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-02-11 16:07:05 +01:00

30 lines
784 B
Nix

{
config',
pkgs,
elib,
vars,
...
}: let
inherit
(elib)
nfsVolume
nomadJob
;
in {
resource."nomad_volume"."minecraft-enigmatica6" = nfsVolume {
access_mode = "single-node-writer";
volume_name = "minecraft-enigmatica6";
server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/minecraft/enigmatica6";
mount_flags = ["hard" "vers=4.2" "rsize=131072" "wsize=131072" "async"];
};
resource."nomad_job"."minecraft-enigmatica6" = 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-enigmatica-6.config.system.build.toplevel;
};
};
}