Skip to content

Commit

Permalink
services: mealie: switch to unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
alarsyo committed Jul 5, 2024
1 parent 0ed148e commit 639303c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions services/mealie.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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";
};
};

Expand Down

0 comments on commit 639303c

Please sign in to comment.