refactor(hypr): remove need for portal override

This commit is contained in:
matt1432 2024-05-01 10:21:28 -04:00
parent f2710d1c19
commit 1ca52dc2ae

View file

@ -33,23 +33,25 @@ in {
programs.hyprland = with hyprland.packages.${pkgs.system}; { programs.hyprland = with hyprland.packages.${pkgs.system}; {
enable = true; enable = true;
package = default.overrideAttrs (o: { package = default;
postFixup = ''
rm "$out/share/xdg-desktop-portal/hyprland-portals.conf"
cat <<EOF > "$out/share/xdg-desktop-portal/hyprland-portals.conf"
[preferred]
default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=kde
EOF
'';
});
portalPackage = xdg-desktop-portal-hyprland; portalPackage = xdg-desktop-portal-hyprland;
}; };
xdg.portal.extraPortals = [ xdg.portal = {
pkgs.xdg-desktop-portal-kde enable = true;
];
extraPortals = with pkgs; [
xdg-desktop-portal-kde
];
config.hyprland = {
default = [
"hyprland"
"gtk"
];
"org.freedesktop.impl.portal.FileChooser" = ["kde"];
};
};
# HOME-MANAGER CONFIG # HOME-MANAGER CONFIG
home-manager.users.${mainUser} = { home-manager.users.${mainUser} = {