From 91eb48cd743608de9ca13d737bd60893861a8b3e Mon Sep 17 00:00:00 2001 From: tdback Date: Mon, 25 Nov 2024 20:14:51 -0500 Subject: [PATCH] use newest version of mealie and cleanup the config --- modules/mealie/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/mealie/default.nix b/modules/mealie/default.nix index 52713ce..9ef97a9 100644 --- a/modules/mealie/default.nix +++ b/modules/mealie/default.nix @@ -1,25 +1,22 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: let domain = "mealie.tdback.net"; - port = 9000; in { services.mealie = { enable = true; - package = pkgs.mealie; - listenAddress = "0.0.0.0"; - port = port; + package = pkgs.unstable.mealie; settings = { BASE_URL = domain; - TZ = "America/Detroit"; + DB_ENGINE = "sqlite"; ALLOW_SIGNUP = "false"; SECURITY_MAX_LOGIN_ATTEMPTS = 3; - DB_ENGINE = "sqlite"; + TZ = "America/Detroit"; }; }; services.caddy.virtualHosts.${domain}.extraConfig = '' encode zstd gzip - reverse_proxy http://localhost:${builtins.toString port} + reverse_proxy http://localhost:${config.services.mealie.port} ''; }