Firefox Configured On NixOS

Table of Contents

The Final Config…. maybe

One of the main things, obviously, used is the browser. I’ve been on Firefox for ages and ages now and don’t really have too many complaints. It seems a bit heavy but it isn’t Chrome at least and I like that it’s the other web engine. Plus it’s been the Linux standard for a while now.

That being said, there are obviously a few settings I like to change upon a fresh install. On NixOS you can install Firefox, great, but then you still have to manually go in and add some extensions, move the tabs to the side (Oh I’m sure glad they built that in now) and stuff like that.

Discovery

I found a lovely breakdown of someone’s Firefox options config which is a NixOS module! This is awesome. A short one today, I don’t know how to add much more in here but I thought I’d just keep track of this as its easier to declare the entire thing off the rip of course.

Config

Here ya go, feel free to copy and paste. You can add extensions to your hearts desire or other settings. They’re hidden away in the about:preferences thing or wherever else you find them.

{ config, pkgs, ... }:

{

  programs.firefox = {
    enable = true;
    policies = {
        EnableTrackingProtection = {
          Value= true;
          Locked = true;
          Cryptomining = true;
          Fingerprinting = true;
          };
        ExtensionSettings = {
            # uBlock Origin:
            "uBlock0@raymondhill.net" = {
              install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
              installation_mode = "force_installed";
               };
            # Privacy Badger:
            "jid1-MnnxcxisBPnSXQ@jetpack" = {
              install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
              installation_mode = "force_installed";
               };
             };
          };
    preferences = {
       "sidebar.verticaltabs" = true;
       "sidebar.verticaltabs.dragtopinpromo.dismissed" = true;
       DisableTelemetry = true;
       DisableFirefoxStudies = true;
      };
    };


}