From a32af9308443ea180bd6da60d8b7fc0d969c8641 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Tue, 9 Jan 2024 13:05:40 +0100 Subject: [PATCH] Use SSD storage for Synapse database Signed-off-by: magic_rb --- terranix/containers/matrix/default.nix | 38 +++++++++++++++----------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/terranix/containers/matrix/default.nix b/terranix/containers/matrix/default.nix index 373f0b4..bb60aa1 100644 --- a/terranix/containers/matrix/default.nix +++ b/terranix/containers/matrix/default.nix @@ -1,24 +1,30 @@ -{ config', config, elib, vars, ... }: -let - inherit (elib) - nfsVolume - nomadJob; -in { + config', + config, + elib, + vars, + ... +}: let + inherit + (elib) + nfsVolume + nomadJob + ; +in { resource."nomad_volume"."matrix-synapse" = nfsVolume { volume_name = "matrix-synapse"; access_mode = "multi-node-multi-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/synapse"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-postgresql" = nfsVolume { volume_name = "matrix-postgresql"; access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; - share = "/mnt/kyle/infrastructure/matrix/postgresql"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + share = "/mnt/jimmy/infrastructure/matrix/postgresql"; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-registrations" = nfsVolume { @@ -26,7 +32,7 @@ in access_mode = "multi-node-multi-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/registrations"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-mautrix-discord" = nfsVolume { @@ -34,7 +40,7 @@ in access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/mautrix-discord"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-mautrix-slack" = nfsVolume { @@ -42,7 +48,7 @@ in access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/mautrix-slack"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-mautrix-facebook" = nfsVolume { @@ -50,7 +56,7 @@ in access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/mautrix-facebook"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-mautrix-signal" = nfsVolume { @@ -58,7 +64,7 @@ in access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/mautrix-signal"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-signald" = nfsVolume { @@ -66,7 +72,7 @@ in access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/signald"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."nomad_volume"."matrix-redis" = nfsVolume { @@ -74,7 +80,7 @@ in access_mode = "single-node-writer"; server = "blowhole.hosts.in.redalder.org"; share = "/mnt/kyle/infrastructure/matrix/redis"; - mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; + mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"]; }; resource."vault_policy"."matrix-mautrix-signal-policy" = {