HeitorAugustoLN / betterfox-nix

Home-manager module to integrate Betterfox user.js in Firefox and Librewolf
MIT License
11 stars 0 forks source link
betterfox firefox home-manager librewolf nix nix-darwin nix-flake nixos

Betterfox-nix

This repository provides a Nix Home Manager module that integrates the Betterfox user.js configurations into Firefox and LibreWolf, enhancing privacy and performance.

Table of contents

Features

Getting started

To begin using Betterfox-nix, add the module to your Nix configuration and enable it for your preferred browser(s).

Example Configuration

Below is an example of how to integrate Betterfox with both Firefox and LibreWolf using this module:

{inputs, ...}: {
  imports = [inputs.betterfox.homeManagerModules.betterfox];

  # In firefox
  programs.firefox = {
    enable = true;
    betterfox = {
      enable = true;
      version = "128.0"; # Set version here, defaults to main branch
    };
    profiles.example-profile = {
      betterfox = {
        enable = true;
        # Set this to enable all sections by default
        enableAllSections = true;

        # To enable/disable specific sections
        fastfox.enable = true;

        # To enable/disable specific subsections
        peskyfox = {
          enable = true;
          mozilla-ui.enable = false;
        };

        # To enable/disable specific options
        securefox = {
          enable = true;
          tracking-protection."browser.download.start_downloads_in_tmp_dir".value = false;
        };
      };
    };
  };

  # In librewolf
  programs.librewolf = {
    enable = true;
    betterfox = {
      enable = true;
      version = "128.0";
      settings = {
        enable = true;
        enableAllSections = true;
      };
    };
  };
}

Acknowledgments

License

This project is licensed under the MIT License.