From d0b926251d718c9572354d6bba26f330c6b3c1ee Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 28 Nov 2024 21:47:06 +0000 Subject: [PATCH] nixos: services: mealie: persist data --- modules/nixos/services/mealie/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/nixos/services/mealie/default.nix b/modules/nixos/services/mealie/default.nix index 664d5ba..7d3fd96 100644 --- a/modules/nixos/services/mealie/default.nix +++ b/modules/nixos/services/mealie/default.nix @@ -72,6 +72,16 @@ in }; }; + my.services.backup = { + paths = [ + "/var/lib/${config.systemd.services.mealie.serviceConfig.StateDirectory}" + ]; + }; + + my.system.persist.directories = [ + "/var/lib/${config.systemd.services.mealie.serviceConfig.StateDirectory}" + ]; + services.fail2ban.jails = { mealie = '' enabled = true