mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
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.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user