services: matrix: remove unneeded mkIf
This commit is contained in:
parent
cc1b9f4794
commit
9593e8b460
|
@ -274,11 +274,10 @@ in {
|
|||
|
||||
my.services.restic-backup = let
|
||||
dataDir = config.services.matrix-synapse.dataDir;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
paths = [dataDir];
|
||||
# this is just caching for other servers media, doesn't need backup
|
||||
exclude = ["${dataDir}/media/remote_*"];
|
||||
};
|
||||
in {
|
||||
paths = [dataDir];
|
||||
# this is just caching for other servers media, doesn't need backup
|
||||
exclude = ["${dataDir}/media/remote_*"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue