mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 18:01:59 +01:00
b4be203edf
Signed-off-by: magic_rb <magic_rb@redalder.org>
48 lines
998 B
Nix
48 lines
998 B
Nix
{
|
|
config',
|
|
pkgs,
|
|
elib,
|
|
tflib,
|
|
vars,
|
|
...
|
|
}: let
|
|
inherit
|
|
(elib)
|
|
nfsVolume
|
|
nomadJob
|
|
;
|
|
inherit
|
|
(tflib)
|
|
tf
|
|
;
|
|
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"];
|
|
};
|
|
|
|
imports = [
|
|
(elib.buildNixNGSystem {
|
|
name = "minecraft-enigmatica-6";
|
|
hosts = [
|
|
"blowhole.hosts.in.redalder.org"
|
|
];
|
|
})
|
|
];
|
|
|
|
resource."nomad_job"."minecraft-enigmatica6" = nomadJob {
|
|
jobspec = ./job.hcl;
|
|
vars = {
|
|
flake_ref = "unused";
|
|
flake_sha = "unused";
|
|
store_path = tf "data.external.nixng-system-minecraft-enigmatica-6.result.out";
|
|
};
|
|
|
|
depends_on = [
|
|
"terraform_data.nixng-system-minecraft-enigmatica-6-copy"
|
|
];
|
|
};
|
|
}
|