From e8b4f3b3b018a6cc12dceed7cf098f30939ef82e Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 12 Jun 2022 03:50:24 +0000 Subject: [PATCH] Simplify syncthing and fix Synapse --- hosts/linode/nextcloud.nix | 4 ---- hosts/linode/postgres.nix | 4 ---- hosts/linode/synapse.nix | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/hosts/linode/nextcloud.nix b/hosts/linode/nextcloud.nix index b4c7265..068ec5a 100644 --- a/hosts/linode/nextcloud.nix +++ b/hosts/linode/nextcloud.nix @@ -30,8 +30,4 @@ enable = true; devices = [ "nas" ]; }; - - services.cron.systemCronJobs = [ - "59 2 * * * root chmod -R a+r ${config.services.syncthing.folders.nextcloud-backup.path} && find ${config.services.syncthing.folders.nextcloud-backup.path} -type d -exec chmod a+x '{}' \\;" - ]; } diff --git a/hosts/linode/postgres.nix b/hosts/linode/postgres.nix index e75e1b4..c8f9780 100644 --- a/hosts/linode/postgres.nix +++ b/hosts/linode/postgres.nix @@ -44,8 +44,4 @@ root root postgres enable = true; devices = [ "nas" ]; }; - - services.cron.systemCronJobs = [ - "59 2 * * * root chmod -R a+r ${config.services.postgresqlBackup.location} && find ${config.services.postgresqlBackup.location} -type d -exec chmod a+x '{}' \\;" - ]; } diff --git a/hosts/linode/synapse.nix b/hosts/linode/synapse.nix index 42ea89f..02bb222 100644 --- a/hosts/linode/synapse.nix +++ b/hosts/linode/synapse.nix @@ -78,7 +78,7 @@ return 200 '${builtins.toJSON client}'; settings = { database.args = { user = "matrix-synapse"; - name = "synapse"; + database = "synapse"; }; server_name = "thehellings.com"; #registration_shared_secret = "B9EoPr2WV9hzwc7uL2Sx1JmvCeKDEOGCpB0uginQcQtEH4wzRtkSIdo7lltrjSQa";