services: matrix: remove unneeded mkIf

This commit is contained in:
Antoine Martin 2022-06-12 21:00:19 +02:00
parent cc1b9f4794
commit 9593e8b460

View file

@ -274,8 +274,7 @@ in {
my.services.restic-backup = let my.services.restic-backup = let
dataDir = config.services.matrix-synapse.dataDir; dataDir = config.services.matrix-synapse.dataDir;
in in {
mkIf cfg.enable {
paths = [dataDir]; paths = [dataDir];
# this is just caching for other servers media, doesn't need backup # this is just caching for other servers media, doesn't need backup
exclude = ["${dataDir}/media/remote_*"]; exclude = ["${dataDir}/media/remote_*"];