From 6a8252b11bb02f3e67857d5a9d733b1affa6a625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 16 Oct 2019 13:49:24 +0200 Subject: Add backup module --- modules/private/websites/tools/mastodon/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/private/websites/tools/mastodon') diff --git a/modules/private/websites/tools/mastodon/default.nix b/modules/private/websites/tools/mastodon/default.nix index d67ae2b..2236bd5 100644 --- a/modules/private/websites/tools/mastodon/default.nix +++ b/modules/private/websites/tools/mastodon/default.nix @@ -10,6 +10,9 @@ in { }; config = lib.mkIf cfg.enable { + services.backup.profiles.mastodon = { + rootDir = mcfg.dataDir; + }; secrets.keys = [{ dest = "webapps/tools-mastodon"; user = "mastodon"; -- cgit v1.2.3