-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xdg-portal: add new module #4707
Conversation
afdcd0e
to
46822da
Compare
cc420af
to
5fcf89a
Compare
xdg portal support can also lead to flatpak being managed via hm right? #4621 |
7c1551d
to
4d8788b
Compare
- Re-enabled nh, fixed with viperML/nh/issues/37 - Changed Dolphin layout agian - Made zsh history substring search use $terminfo keys - Added Misterio77's xdg-portal HM plugin, nix-community/home-manager/pull/4707 - Reorganized and removed redundant code to make the flake more readable - Made HomeManager generate nixpkgs/config.nix in order to properly retrieve custom nixpkgs settings again - Updated desktop partition ids due to reinstall - Added settings for gamemode - Removed gamescope - Python packages now available from Python 3.11
4d8788b
to
283f5a5
Compare
Hey @Misterio77, would it be possible to use this module along with the NixOS module? KDE ignores the user defined xdg portal settings and only considers them if I use the NixOS module to declare them |
Is this ready to merge? |
Yup! Should be. Been using this for over a month, with no issues whatsoever. Lemme just quickly fix the |
55650b3
to
0ca16e8
Compare
Great stuff! Merged to master now 🙂 |
Thank you, @Misterio77 ! |
Description
Adds
xdg.portal
options. Fixes #1167Most of it came from the equivalent NixOS module, with a few changes to work here.
The
xdg-desktop-portal
receives requests and forwards them to the right portal, based on:{~/.config,etc}/xdg-desktop-portal
) and/or DE (i.e.$prefix/share/xdg-desktop-portal
).portals.conf
) or per-DEfoo-portals.conf
The idea is that, to get working portals, we must:
xdg-desktop-portal.service
running (or simply available to be started via dbus). It must be able to find:/etc
, but for us this is not really useful), as well as$XDG_DESKTOP_PORTAL_DIR
(which is what we'll set)xdg-desktop-portal
on your shell, adding DEs tohome.packages
currently works, as it looks on$XDG_DATA_DIR
(which the respective configs are linked to).$NIXOS_XDG_DESKTOP_PORTAL_CONFIG_DIR
, provided by nixpkgs' patchesxdg-desktop-portal-foo.services
) available (also started via dbus)With this module, flipping
xdg.portal.enable
should provide axdg-desktop-portal
service unit, which should be able to locate and start portals listed onxdg.portal.extraPortals
; and be controlled by portal configs provided by packages (i.e. DEs) listed onxdg.portal.configPackages
, and a user definedxdg.portal.config
. An example for hyprland:To illustrate
xdg.portal.config
, suppose you prefer to override Hyprland's provided.conf
and usexdg-desktop-portal-wlr
instead:Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
ornix develop --ignore-environment .#all
using Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC