feat(hyprland): use kde dialog instead of gtk's
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-18 19:04:09 -04:00
parent f8ceddcabc
commit 0e4df9ea74
2 changed files with 17 additions and 4 deletions

View file

@ -38,6 +38,7 @@ in {
"userChrome.tab.bottom_rounded_corner" = true; "userChrome.tab.bottom_rounded_corner" = true;
"userChrome.tab.bottom_rounded_corner.wave" = false; "userChrome.tab.bottom_rounded_corner.wave" = false;
"userChrome.tab.bottom_rounded_corner.australis" = true; "userChrome.tab.bottom_rounded_corner.australis" = true;
"widget.use-xdg-desktop-portal.file-picker" = 1;
# Open previous windows and tabs # Open previous windows and tabs
"browser.startup.page" = 3; "browser.startup.page" = 3;

View file

@ -18,7 +18,10 @@ in {
./security.nix ./security.nix
]; ];
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
GTK_USE_PORTAL = "1";
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Needed for hycov fork # Needed for hycov fork
@ -33,13 +36,22 @@ in {
programs.hyprland = with hyprland.packages.${pkgs.system}; { programs.hyprland = with hyprland.packages.${pkgs.system}; {
enable = true; enable = true;
package = default; 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
'';
});
portalPackage = xdg-desktop-portal-hyprland; portalPackage = xdg-desktop-portal-hyprland;
}; };
xdg.portal.extraPortals = [ xdg.portal.extraPortals = [
cfg.portalPackage pkgs.xdg-desktop-portal-kde
pkgs.xdg-desktop-portal-gtk
]; ];
# HOME-MANAGER CONFIG # HOME-MANAGER CONFIG