Firefox: Difference between revisions

Layer-09 (talk | contribs)
mNo edit summary
m Updated messaging hosts from pkgs.plasma-browser-integration to pkgs.kdePackages.plasma-browser-integration
 
(2 intermediate revisions by 2 users not shown)
Line 279: Line 279:
# In configuration.nix, assuming use of specialArgs
# In configuration.nix, assuming use of specialArgs
environment.systemPackages = [
environment.systemPackages = [
   inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin
   inputs.firefox.packages.${pkgs.stdenv.hostPlatform.system}.firefox-nightly-bin
];
];
}}
}}
Line 303: Line 303:
<translate>
<translate>
== Tips and Tricks == <!--T:26-->
== Tips and Tricks == <!--T:26-->
==== Force XWayland (X11) instead of Wayland ==== <!--T:29-->
</translate>
</translate>
<translate>
<translate>
==== Enhancing Privacy ==== <!--T:27-->
<!--T:30-->
</translate>
Firefox defaults to native Wayland when running under a Wayland compositor. To force it to use XWayland (X11) instead:
{{Note|Hardening Firefox often involves a trade-off between privacy and convenience. Some websites may not function correctly with aggressive settings.}}
<translate>
<!--T:28-->
Beyond the declarative settings above, you can further enhance privacy:
* '''Container Tabs''': Use an extension like [https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/ Multi-Account Containers] to isolate websites from each other, preventing cross-site tracking.
* '''DNS over HTTPS (DoH)''': Encrypt your DNS queries by enabling DoH in Firefox's network settings to prevent ISP snooping.
</translate>
</translate>
{{code|lang=nix|line=no|1=environment.sessionVariables.MOZ_ENABLE_WAYLAND = "0";}}
<translate>
<translate>
==== Wayland support ==== <!--T:29-->
<!--T:30a-->
</translate>
This is useful when troubleshooting Wayland-specific issues or when certain features work better under X11.
{{code|lang=nix|line=no|1=environment.sessionVariables.MOZ_ENABLE_WAYLAND = "1";}}
<translate>
<!--T:30-->
Setting the variable above makes Firefox use Wayland when available.
</translate>
</translate>
<translate>
<translate>
Line 339: Line 332:
1. Add the native messaging host package to your configuration:
1. Add the native messaging host package to your configuration:
</translate>
</translate>
{{code|lang=nix|line=no|1=programs.firefox.nativeMessagingHosts.packages = [ pkgs.plasma-browser-integration ];}}
{{code|lang=nix|line=no|1=programs.firefox.nativeMessagingHosts.packages = [ pkgs.kdePackages.plasma-browser-integration ];}}
<translate>
<translate>
<!--T:35-->
<!--T:35-->