From b9d22e20a6c13c77944b04caacc0074fb7a6746c Mon Sep 17 00:00:00 2001 From: Soispha Date: Thu, 28 Dec 2023 11:35:31 +0100 Subject: feat(sys/svcs/xdg/termchooser): Init --- sys/svcs/xdg/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'sys/svcs/xdg/default.nix') diff --git a/sys/svcs/xdg/default.nix b/sys/svcs/xdg/default.nix index 2de640dd..243c7c9d 100644 --- a/sys/svcs/xdg/default.nix +++ b/sys/svcs/xdg/default.nix @@ -1,8 +1,23 @@ -{pkgs, ...}: { +{ + pkgs, + sysLib, + ... +}: { services.dbus.enable = true; xdg = { portal = { enable = true; + termfilechooser = { + enable = true; + settings = { + cmd = sysLib.writeShellScriptWithLibraryAndKeepPath { + name = "lf_wrapper"; + src = ./scripts/lf_wrapper; + dependencies = with pkgs; [ + ]; + }; + }; + }; config = { common = { # NOTE: The next entry is supposedly needed for gtk based apps <2023-08-31> @@ -17,7 +32,7 @@ extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr - # xdg-desktop-portal-termfilechooser + xdg-desktop-portal-termfilechooser ]; }; }; -- cgit 1.4.1