Unverified Commit 59e79d64 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

nixos/firefox-syncserver: fix local database access

Local database creation always assumed UNIX socket accces. During the
25.11 release cycle this seemingly changed and we now need to be
explicit.
parent de77917f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ let
  defaultUser = "firefox-syncserver";

  dbIsLocal = cfg.database.host == "localhost";
  dbURL = "mysql://${cfg.database.user}@${cfg.database.host}/${cfg.database.name}";
  dbURL = "mysql://${cfg.database.user}@${cfg.database.host}/${cfg.database.name}${lib.optionalString dbIsLocal "?socket=/run/mysqld/mysqld.sock"}";

  format = pkgs.formats.toml { };
  settings = {