diff options
Diffstat (limited to '')
-rw-r--r-- | sys/svcs/xdg/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
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 ]; }; }; |