mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Use SSD storage for Synapse database
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
baace089a5
commit
a32af93084
|
@ -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" = {
|
||||
|
|
Loading…
Reference in a new issue