79 lines
		
	
	
	
		
			3.6 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
	
		
			3.6 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| #{ pkgs-unstable, ... }: {
 | |
| { ... }: {
 | |
|   xdg = {
 | |
|     enable = true;
 | |
|     mimeApps = {
 | |
|       enable = true;
 | |
|       defaultApplications = {
 | |
|         "application/pdf" = "firefox.desktop";
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| 
 | |
|   home.file.".mozilla/firefox/lauren/chrome/userContent.css".text = ''
 | |
|     /* Makes 'Open tabs' page useful */
 | |
|     view-opentabs-card {
 | |
|       width: 1000px !important;
 | |
|     }
 | |
|   '';
 | |
| 
 | |
|   programs.firefox = {
 | |
|     enable = true;
 | |
|     #package = pkgs-unstable.firefox;
 | |
|     policies = {
 | |
|       DisableTelemetry = false;
 | |
|       DisablePocket = true;
 | |
|       DisableFirefoxStudies = true;
 | |
|       DontCheckDefaultBrowser = true;
 | |
|       SearchBar = "unified";
 | |
| 
 | |
|       Preferences = {};
 | |
| 
 | |
|       # about:debugging#/runtime/this-firefox
 | |
|       ExtensionSettings = {
 | |
|         # uBlock Origin
 | |
|         "uBlock0@raymondhill.net" = {
 | |
|           install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
 | |
|           installation_mode = "force_installed";
 | |
|         };
 | |
|         # Vimium
 | |
|         "{d7742d87-e61d-4b78-b8a1-b469842139fa}" = {
 | |
|           install_url = "https://addons.mozilla.org/firefox/downloads/file/4191523/vimium_ff-2.0.6.xpi";
 | |
|           installation_mode = "force_installed";
 | |
|         };
 | |
|         # New Tab Homepage
 | |
|         "{66E978CD-981F-47DF-AC42-E3CF417C1467}" = {
 | |
|           install_url = "https://addons.mozilla.org/firefox/downloads/file/4270256/new_tab_homepage-0.6.3resigned1.xpi";
 | |
|           installation_mode = "force_installed";
 | |
|         };
 | |
|       };
 | |
|     };
 | |
| 
 | |
|     profiles.lauren.settings = {
 | |
|       "browser.uiCustomization.state" = ''
 | |
|         {"placements":{"widget-overflow-fixed-list":[],"unified-extensions-area":[],"nav-bar":["back-button","forward-button","stop-reload-button","customizableui-special-spring1","urlbar-container","customizableui-special-spring2","save-to-pocket-button","downloads-button","fxa-toolbar-menu-button","unified-extensions-button","browserpass_maximbaz_com-browser-action","_d7742d87-e61d-4b78-b8a1-b469842139fa_-browser-action","ublock0_raymondhill_net-browser-action","7esoorv3_alefvanoon_anonaddy_me-browser-action"],"toolbar-menubar":["menubar-items"],"TabsToolbar":["firefox-view-button","tabbrowser-tabs","new-tab-button","alltabs-button"],"PersonalToolbar":["import-button","personal-bookmarks"]},"seen":["developer-button","_d7742d87-e61d-4b78-b8a1-b469842139fa_-browser-action","browserpass_maximbaz_com-browser-action","ublock0_raymondhill_net-browser-action","7esoorv3_alefvanoon_anonaddy_me-browser-action"],"dirtyAreaCache":["nav-bar","PersonalToolbar","unified-extensions-area","toolbar-menubar","TabsToolbar"],"currentVersion":20,"newElementCount":2}
 | |
|       '';
 | |
|       "signon.rememberSignons" = false;
 | |
|       "browser.aboutConfig.showWarning" = false;
 | |
|       "widget.disable-workspace-management" = true;
 | |
|       "browser.toolbars.bookmarks.visibility" = "always";
 | |
| 
 | |
|       # Attempting to minimize the amount of crap that happens at first startup
 | |
|       "app.normandy.first_run" = false;
 | |
|       "browser.startup.firstrunSkipsHomepage" = false;
 | |
|       "doh-rollout.doneFirstRun" = true;
 | |
|       "toolkit.telemetry.reportingpolicy.firstRun" = false;
 | |
|       "trailhead.firstrun.didSeeAboutWelcome" = true;
 | |
|       "trailhead.firstrun.branches" = "nofirstrun-empty";
 | |
|       "browser.aboutwelcome.enabled" = false;
 | |
|       "browser.newtab.extensionControlled" = true;
 | |
| 
 | |
|       # Allow declarative management of extensions
 | |
|       # See: https://github.com/nix-community/home-manager/pull/6389
 | |
|       "extensions.webextensions.ExtensionStorageIDB.enabled" = false;
 | |
| 
 | |
|       "browser.tabs.groups.enabled" = true;
 | |
|       "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
 | |
|     };
 | |
|   };
 | |
| }
 |