diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-10-03 20:37:30 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-10-03 20:39:26 -0600 |
| commit | a47ac17c249574e68c4a9f93f558ea61f987804f (patch) | |
| tree | 1ea8ef0b4237591f759dbffb4d438525c754c6c5 /sys | |
| parent | 62d488822dc856e30eeeab56e985bd8cd274cca9 (diff) | |
sys/seat: add xdg-desktop-portal-gtk to xdg.portals
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/seat/default.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/seat/default.nix b/sys/seat/default.nix index 374ae69..ae9cd77 100644 --- a/sys/seat/default.nix +++ b/sys/seat/default.nix @@ -114,7 +114,24 @@ in }; }; - xdg.portal.wlr.enable = true; + xdg.portal = { + enable = true; + wlr.enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + xdgOpenUsePortal = true; + + # warning: xdg-desktop-portal 1.17 reworked how portal implementations are loaded, you + # should either set `xdg.portal.config` or `xdg.portal.configPackages` + # to specify which portal backend to use for the requested interface. + # + # https://github.com/flatpak/xdg-desktop-portal/blob/1.18.1/doc/portals.conf.rst.in + # + # If you simply want to keep the behaviour in < 1.17, which uses the first + # portal implementation found in lexicographical order, use the following: + # + # xdg.portal.config.common.default = "*"; + config.common.default = "*"; + }; users.groups.adbusers.gid = 1008; }) |
