Commit ed0af3bf authored by Kerstin Humm's avatar Kerstin Humm Committed by Kerstin
Browse files

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?
parent c7a67785
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -973,7 +973,7 @@ in
            '';
          path = [
            cfg.package
            config.services.postgresql.package
            (if databaseActuallyCreateLocally then config.services.postgresql.package else pkgs.postgresql)
          ];
          environment =
            env