From 19835b9be47ba9b96b1f72c93c98e3c3866a858a Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Sun, 25 Jan 2026 17:23:01 +0100 Subject: Fixes in secrets and services. Mostly fixes connection to mysql and the unix-socket auth for it. --- services/wakapi.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'services/wakapi.nix') diff --git a/services/wakapi.nix b/services/wakapi.nix index c89a46a..69251d3 100644 --- a/services/wakapi.nix +++ b/services/wakapi.nix @@ -64,10 +64,11 @@ in }; }; + systemd.services.wakapi.after = ["mysql.service"]; services.wakapi = { enable = true; stateDir = cfg.dataDir; - passwordSaltFile = config.sops.secrets.wakapi/password_salt; + passwordSaltFile = config.sops.secrets."wakapi/password_salt".path; settings = { server = { port = 3111; @@ -83,10 +84,9 @@ in datetime_format = "Mon, 02 Jan 2006 15:04"; }; db = { - socket = "/var/lib/mysql/mysql.sock"; + socket = "/run/mysqld/mysqld.sock"; name = "wakapi"; dialect = "mysql"; - charset = "utf8mb4"; }; security = { insecure_cookies = false; -- cgit v1.3.1