From 5a2b5954fa1a418dbc52c423a6e988829f88a5f1 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 12:25:00 +0100 Subject: [PATCH] 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 --- settings/hyprland.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index ffa3fca..5b8e417 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -13,8 +13,10 @@ xdg.portal = { 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; [ - xdg-desktop-portal-hyprland xdg-desktop-portal-gtk ]; config.hyprland.default = [ "hyprland" "gtk" ];