about summary refs log tree commit diff stats
path: root/sys/svcs/xdg/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-11-25 13:01:21 +0100
committerSoispha <soispha@vhack.eu>2023-11-25 13:01:21 +0100
commitb57ee1e7135c64bcd95a86c63aabd6696bfe355f (patch)
treedbee366b6f97e2cfc4921747af31d650ea43e06a /sys/svcs/xdg/default.nix
parentchore(treewide): Update shell library (diff)
downloadnixos-config-b57ee1e7135c64bcd95a86c63aabd6696bfe355f.tar.gz
nixos-config-b57ee1e7135c64bcd95a86c63aabd6696bfe355f.zip
fix(sys/svcs/xdg/portals): Use new configuration scheme
Diffstat (limited to 'sys/svcs/xdg/default.nix')
-rw-r--r--sys/svcs/xdg/default.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/sys/svcs/xdg/default.nix b/sys/svcs/xdg/default.nix
index 1fe60c43..4f6db4a1 100644
--- a/sys/svcs/xdg/default.nix
+++ b/sys/svcs/xdg/default.nix
@@ -3,12 +3,20 @@
   xdg = {
     portal = {
       enable = true;
-      # TODO: only enable the below, when on river (or wlr based compositor)
-      wlr.enable = true;
-      extraPortals = [
-        # NOTE: The next entry is supposedly needed for gtk based apps <2023-08-31>
-        pkgs.xdg-desktop-portal-gtk
-        pkgs.xdg-desktop-portal-wlr
+      config = {
+        common = {
+          # NOTE: The next entry is supposedly needed for gtk based apps <2023-08-31>
+          default = ["gtk"];
+        };
+
+        # TODO: Also activate, when on another wlr-based compositor <2023-11-25>
+        river = {
+          default = ["wlr"];
+        };
+      };
+      extraPortals = with pkgs; [
+        xdg-desktop-portal-gtk
+        xdg-desktop-portal-wlr
       ];
     };
   };