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