diff --git a/profiles/gui/home/firefox/default.nix b/profiles/gui/home/firefox/default.nix index 25d0f731..fe8e8476 100644 --- a/profiles/gui/home/firefox/default.nix +++ b/profiles/gui/home/firefox/default.nix @@ -17,6 +17,11 @@ in { ff-lewd = "firefox -P lewd"; }; + home.sessionVariables = { + MOZ_ENABLE_WAYLAND = 1; + XDG_CURRENT_DESKTOP = "sway"; + }; + programs.firefox = { enable = true; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ diff --git a/profiles/gui/nixos/firefox.nix b/profiles/gui/nixos/firefox.nix index b44e884e..0ec1c082 100644 --- a/profiles/gui/nixos/firefox.nix +++ b/profiles/gui/nixos/firefox.nix @@ -1,6 +1,10 @@ { config, pkgs, ... }: { + environment.variables = { + BROWSER = "firefox"; + }; + xdg = { portal = { enable = true;