hyprland: drop duplicate portal from extraPortals

programs.hyprland.portalPackage already registers the hyprland portal's
systemd user unit. Listing the same portal in xdg.portal.extraPortals
made nixos-rebuild fail at user-units symlink creation. Keep the gtk
portal there since that one isn't otherwise registered.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-05-11 12:25:00 +01:00
parent 7859ac8589
commit 5a2b5954fa

View file

@ -13,8 +13,10 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
# xdg-desktop-portal-hyprland is registered automatically by
# programs.hyprland.portalPackage; listing it here too produced a
# duplicate user-unit symlink during nixos-rebuild.
extraPortals = with pkgs; [ extraPortals = with pkgs; [
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
]; ];
config.hyprland.default = [ "hyprland" "gtk" ]; config.hyprland.default = [ "hyprland" "gtk" ];