refactor(hypr): remove need for portal override
This commit is contained in:
parent
f2710d1c19
commit
1ca52dc2ae
1 changed files with 16 additions and 14 deletions
|
@ -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} = {
|
||||||
|
|
Loading…
Reference in a new issue