nixos: services: tandoor-recipes: persist data

This commit is contained in:
Bruno BELANYI 2024-11-28 21:47:51 +00:00
parent 9b9f55081e
commit 0ccc4b576b

View file

@ -83,6 +83,19 @@ in
};
};
my.services.backup = {
paths = [
"/var/lib/${config.systemd.services.tandoor-recipes.StateDirectory}"
config.systemd.services.tandoor-recipes.environment.MEDIA_ROOT
];
};
my.system.persist.directories = [
"/var/lib/${config.systemd.services.tandoor-recipes.StateDirectory}"
config.systemd.services.tandoor-recipes.environment.MEDIA_ROOT
];
# NOTE: unfortunately tandoor-recipes does not log connection failures for fail2ban
};
}