From 49f72f1b899a4bc286436fd81803a2de713ec04b Mon Sep 17 00:00:00 2001 From: Moritz 'e1mo' Fromm Date: Fri, 10 Feb 2023 00:47:54 +0100 Subject: [PATCH] Add matrix on shirley Secrets not yet added to not brick our matrix if we accidentally deploy --- hosts/shirley/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/shirley/configuration.nix b/hosts/shirley/configuration.nix index 47bb276..b8bc2fd 100644 --- a/hosts/shirley/configuration.nix +++ b/hosts/shirley/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, baseDomain, ... }: { +{ pkgs, config, ... }: { cj.deployment.environment = "prod"; imports = [ @@ -6,6 +6,7 @@ ../../services/mumble.nix ../../services/website.nix ../../services/vaultwarden.nix + ../../services/matrix.nix ../../services/dokuwiki.nix ../../services/freescout.nix ../../services/hedgedoc.nix @@ -27,4 +28,13 @@ ipv6.addresses = [ { address = "2a01:4f8:c0c:83eb::1"; prefixLength = 64; } ]; }; }; + + # This is specific to every host! + systemd.mounts = [{ + what = "/dev/disk/by-id/scsi-0HC_Volume_7628580"; + where = config.services.matrix-synapse.settings.media_store_path; + type = "ext4"; + options = "discard,nofail,defaults"; + wantedBy = [ "multi-user.target" ]; + }]; }