litten: add mealie

This commit is contained in:
Brian Lee 2025-02-22 17:54:04 -08:00
parent 0a84fd1533
commit 850a0181a1

View File

@ -114,7 +114,6 @@ in
groups = { groups = {
glance = {}; glance = {};
n8n = {}; n8n = {};
mealie = {};
}; };
users = { users = {
@ -135,7 +134,6 @@ in
"docker" "docker"
"glance" "glance"
"n8n" "n8n"
"mealie"
]; ];
packages = with pkgs; [ packages = with pkgs; [
# unstable.n8n # unstable.n8n
@ -225,16 +223,6 @@ in
]; ];
}; };
mealie = {
isSystemUser = true;
group = "mealie";
description = "Mealie service user";
home = "/var/lib/mealie";
createHome = true;
packages = with pkgs; [
unstable.mealie
];
};
}; };
}; };
# home-manager.users.blee = { imports = [ ./home.nix ]; }; # home-manager.users.blee = { imports = [ ./home.nix ]; };
@ -470,6 +458,11 @@ in
reverse_proxy http://127.0.0.1:8034 reverse_proxy http://127.0.0.1:8034
} }
${host_fqdn}:4435 { # mealie
${tlsConfig}
reverse_proxy http://127.0.0.1:8035
}
:9999 { :9999 {
respond "success" respond "success"
} }
@ -487,7 +480,6 @@ in
tandoor-recipes = { tandoor-recipes = {
enable = true; enable = true;
# address = "127.0.0.1";
port = 8034; port = 8034;
extraConfig = { extraConfig = {
# https://github.com/TandoorRecipes/recipes/raw/refs/heads/develop/docs/system/configuration.md # https://github.com/TandoorRecipes/recipes/raw/refs/heads/develop/docs/system/configuration.md
@ -495,31 +487,20 @@ in
ALLOWED_HOSTS = "${host_fqdn}"; ALLOWED_HOSTS = "${host_fqdn}";
TANDOOR_PORT = "8034"; TANDOOR_PORT = "8034";
}; };
package = unstable.tandoor-recipes;
};
mealie = {
enable = true;
port = 8035;
listenAddress = "127.0.0.1";
package = unstable.mealie;
}; };
}; };
systemd = { systemd = {
services.mealie = {
enable = true;
description = "Mealie";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
User = "mealie";
Group = "mealie";
WorkingDirectory = "/var/lib/mealie";
ExecStart = "${pkgs.mealie}/bin/mealie";
Restart = "on-failure";
RestartSec = "1m";
Environment = [
"MEALIE_PORT=8035"
];
};
};
services.n8n = { services.n8n = {
enable = true; enable = true;
description = "n8n"; description = "n8n";