home-manager Firefox configuration with extensions, use the latest features of the…
- User
home-manager Firefox configuration with extensions, use the latest features of the unstable version
Assistant
Here's a comprehensive home-manager configuration for Firefox using unstable features and extensions. This setup assumes you're using NixOS or a standalone home-manager with access to the unstable channel:
{ config, pkgs, ... }: { # Use Firefox from the unstable channel programs.firefox = { enable = true; package = pkgs.unstable.firefox; # Get latest Firefox version # Modern UI settings settings = { # Enable Wayland support "widget.wayland.force-x11" = false; "widget.wayland.scaling" = "auto"; # Privacy enhancements "datareporting.healthreport.uploadEnabled" = false; "browser.ping-centre.telemetry" = false; "browser.newtabpage.activity-stream.feeds.telemetry" = false; # Performance optimizations "browser.cache.disk.enable" = false; "browser.sessionhistory.max_entries" = 200; # UI improvements "browser.tabs.tabMinWidth" = 100; "browser.tabs.closeButtons" = 2; # Show close button on all tabs "browser.tabs.warnOnClose" = false; }; # Add modern Firefox extensions extensions = with pkgs.firefox-addons; [ ublock-origin dark-reader bitwarden decentraleyes https-everywhere privacy-badger multi-account-containers firefox-color tridactyl sidebery ]; # Environment variables for advanced features environment = { MOZ_ENABLE_WAYLAND = "1"; MOZ_WEBRENDER = "1"; MOZ_GTK_TITLEBAR_DECORATION = "client"; }; # Optional: Custom CSS for modern UI (create userChrome.css) userChrome = '' @import "url('chrome://browser/content/browser.css')"; /* Modern tab styling */ .tabbrowser-tab { font-weight: 500 !important; margin: 0 2px !important; } /* Hide default titlebar */ #titlebar { visibility: collapse !important; } ''; }; # Optional: Add Firefox Developer Edition alongside stable environment.systemPackages = [ pkgs.unstable.firefox-devedition ]; }Key features:
- Uses Firefox from unstable channel
- Modern UI configuration with Wayland support
- Privacy-focused settings
- Performance optimizations
- Popular extensions included:
- uBlock Origin
- Dark Reader
- Bitwarden
- HTTPS Everywhere
- Privacy Badger
- Firefox Multi-Account Containers
- Firefox Color
- Tridactyl (vim-like controls)
- Sidebery (vertical tabs)
- Custom userChrome.css for UI customization
- Environment variables for advanced rendering features
To use this configuration:
- Add to your home-manager configuration file
- Create a
userChrome.cssfile in your Firefox profile directory - Rebuild your system with
nixos-rebuild switch
For the most up-to-date extensions, check the
firefox-addonspackage set in nixpkgs. You might need to update package names if newer versions become available.Remember to:
- Regularly update your nixpkgs channel (
nix-channel --update) - Check extension compatibility with the Firefox version
- Test Wayland support if using a Wayland compositor
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.