fix: try to make firefox the default browser

This commit is contained in:
ryan4yin
2023-05-29 22:12:32 +08:00
parent 4f79b64f11
commit 226a3a2596
3 changed files with 11 additions and 3 deletions

View File

@@ -166,9 +166,15 @@
xdg.portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = true;
# Sets environment variable NIXOS_XDG_OPEN_USE_PORTAL to 1
# This will make xdg-open use the portal to open programs,
# which resolves bugs involving programs opening inside FHS envs or with unexpected env vars set from wrappers.
# xdg-open is used by almost all programs to open a unknown file/uri
# alacritty as an example, it use xdg-open as default, but you can also custom this behavior
# and vscode has open like `External Uri Openers`
xdgOpenUsePortal = false;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr # for wlroots based compositors
xdg-desktop-portal-wlr # for wlroots based compositors(hyprland/sway)
xdg-desktop-portal-gtk # for gtk
# xdg-desktop-portal-kde # for kde
];