From c993c364821168b6c0c1b157813fd3d73075ec7f Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 21 Mar 2025 23:46:54 +0300 Subject: [PATCH] chore: use lib.strings.toJSON fully --- hosts/best/matrix/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/best/matrix/default.nix b/hosts/best/matrix/default.nix index 21a7b68..65e1f95 100644 --- a/hosts/best/matrix/default.nix +++ b/hosts/best/matrix/default.nix @@ -1,6 +1,7 @@ { self, config, lib, ... }: let inherit (config.networking) domain; - inherit (lib) const enabled genAttrs merge strings; + inherit (lib) const enabled genAttrs merge; + inherit (lib.strings) toJSON; fqdn = "chat.${domain}"; port = 8002; @@ -10,7 +11,7 @@ add_header Access-Control-Allow-Origin * always; default_type application/json; - return 200 '${strings.toJSON data}'; + return 200 '${toJSON data}'; ''; configWellKnownResponse.locations = {