From 391afb1f264ae92b891fe32b0379ecda238980cf Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 17 Jul 2024 00:08:52 +0200 Subject: [PATCH] nix: set GST_PLUGIN_SYSTEM_PATH_1_0, LIBGL_DEBUG, RUST_LOG Webkit is mad if it cannot find gstreamer and seems to get stuck otherwise. LIBGL_DEBUG helps to debug GL stuff, and RUST_LOG our rust code. --- nix/configuration.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nix/configuration.nix b/nix/configuration.nix index 4ea4616..daad010 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -71,7 +71,19 @@ enable = true; user = "kiosk"; program = "${pkgs.fossbeamer}/bin/fossbeamer --default-config=${../default-config.json} https://example.com"; - environment.GIO_MODULE_DIR = "${pkgs.glib-networking}/lib/gio/modules/"; + environment = { + GST_PLUGIN_SYSTEM_PATH_1_0 = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (with pkgs.gst_all_1;[ + gstreamer + gst-plugins-base + gst-plugins-good + gst-plugins-bad + # gst-plugins-ugly + gst-libav + ]); + GIO_MODULE_DIR = "${pkgs.glib-networking}/lib/gio/modules/"; + LIBGL_DEBUG = "verbose"; + RUST_LOG = "debug"; + }; extraArguments = [ "-d" # don't draw client decorations when possible ];