From ed0af3bf25cc138e6a2942c8483e87b5e5fd0762 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Wed, 18 Jun 2025 13:56:00 +0200 Subject: [PATCH] nixos/mastodon: make robust for cases where postgresql isn't enabled on the host E.g. when a remote PostgreSQL database is used Apparently you can't access the services.postgresql.package value anymore if postgresql isn't enabled? --- nixos/modules/services/web-apps/mastodon.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix index da6a09a00101..a415e8d7f771 100644 --- a/nixos/modules/services/web-apps/mastodon.nix +++ b/nixos/modules/services/web-apps/mastodon.nix @@ -973,7 +973,7 @@ in ''; path = [ cfg.package - config.services.postgresql.package + (if databaseActuallyCreateLocally then config.services.postgresql.package else pkgs.postgresql) ]; environment = env