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 {
services.mealie = {
enable = true;
package = pkgs.unstable.mealie;
listenAddress = "127.0.0.1";
port = cfg.port;
@ -44,15 +45,15 @@ in {
DB_ENGINE = "postgres";
# Settings for Mealie 1.2
POSTGRES_USER = "mealie";
POSTGRES_PASSWORD = "";
POSTGRES_SERVER = "/run/postgresql";
# Pydantic and/or mealie doesn't handle the URI correctly, hijack it
# with query parameters...
POSTGRES_DB = "mealie?host=/run/postgresql&dbname=mealie";
#POSTGRES_USER = "mealie";
#POSTGRES_PASSWORD = "";
#POSTGRES_SERVER = "/run/postgresql";
## Pydantic and/or mealie doesn't handle the URI correctly, hijack it
## with query parameters...
#POSTGRES_DB = "mealie?host=/run/postgresql&dbname=mealie";
# 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";
};
};