From 850a0181a104379c3c23e74e0eaafcd2884f8fae Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Sat, 22 Feb 2025 17:54:04 -0800 Subject: [PATCH] litten: add mealie --- litten.brenise.dev/configuration.nix | 45 ++++++++-------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/litten.brenise.dev/configuration.nix b/litten.brenise.dev/configuration.nix index 0ec996a..68a0c1c 100644 --- a/litten.brenise.dev/configuration.nix +++ b/litten.brenise.dev/configuration.nix @@ -114,7 +114,6 @@ in groups = { glance = {}; n8n = {}; - mealie = {}; }; users = { @@ -135,7 +134,6 @@ in "docker" "glance" "n8n" - "mealie" ]; packages = with pkgs; [ # 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 ]; }; @@ -470,6 +458,11 @@ in reverse_proxy http://127.0.0.1:8034 } + ${host_fqdn}:4435 { # mealie + ${tlsConfig} + reverse_proxy http://127.0.0.1:8035 + } + :9999 { respond "success" } @@ -487,7 +480,6 @@ in tandoor-recipes = { enable = true; - # address = "127.0.0.1"; port = 8034; extraConfig = { # https://github.com/TandoorRecipes/recipes/raw/refs/heads/develop/docs/system/configuration.md @@ -495,31 +487,20 @@ in ALLOWED_HOSTS = "${host_fqdn}"; TANDOOR_PORT = "8034"; }; + package = unstable.tandoor-recipes; + }; + + mealie = { + enable = true; + port = 8035; + listenAddress = "127.0.0.1"; + package = unstable.mealie; }; }; 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 = { enable = true; description = "n8n";