services: mealie: switch to unstable

This commit is contained in:
Antoine Martin 2024-07-05 18:06:58 +02:00
parent 0ed148eb66
commit 639303c2bf

View file

@ -32,6 +32,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.mealie = { services.mealie = {
enable = true; enable = true;
package = pkgs.unstable.mealie;
listenAddress = "127.0.0.1"; listenAddress = "127.0.0.1";
port = cfg.port; port = cfg.port;
@ -44,15 +45,15 @@ in {
DB_ENGINE = "postgres"; DB_ENGINE = "postgres";
# Settings for Mealie 1.2 # Settings for Mealie 1.2
POSTGRES_USER = "mealie"; #POSTGRES_USER = "mealie";
POSTGRES_PASSWORD = ""; #POSTGRES_PASSWORD = "";
POSTGRES_SERVER = "/run/postgresql"; #POSTGRES_SERVER = "/run/postgresql";
# Pydantic and/or mealie doesn't handle the URI correctly, hijack it ## Pydantic and/or mealie doesn't handle the URI correctly, hijack it
# with query parameters... ## with query parameters...
POSTGRES_DB = "mealie?host=/run/postgresql&dbname=mealie"; #POSTGRES_DB = "mealie?host=/run/postgresql&dbname=mealie";
# Settings for Mealie 1.7+, when that gets into NixOS stable # Settings for Mealie 1.7+, when that gets into NixOS stable
# POSTGRES_URL_OVERRIDE = "postgresql://mealie:@/mealie?host=/run/postgresql"; POSTGRES_URL_OVERRIDE = "postgresql://mealie:@/mealie?host=/run/postgresql";
}; };
}; };