2024-02-26 17:21:14 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2024-11-20 20:32:38 +01:00
|
|
|
mkIf (elem "tandoor" config.machine.services) {
|
|
|
|
services.tandoor-recipes = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = {
|
|
|
|
# Set explicitly so it can be referenced by web-server
|
|
|
|
MEDIA_ROOT = "/var/lib/tandoor-recipes/media/";
|
2024-02-26 17:21:14 +01:00
|
|
|
};
|
2024-11-20 20:32:38 +01:00
|
|
|
};
|
|
|
|
}
|