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,24 +33,26 @@ in {
programs.hyprland = with hyprland.packages.${pkgs.system}; {
enable = true;
package = default.overrideAttrs (o: {
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
'';
});
package = default;
portalPackage = xdg-desktop-portal-hyprland;
};
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal-kde
xdg.portal = {
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.users.${mainUser} = {
imports = [