aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/librewolf/default.nix
blob: 65f0078321cd27dbcb32b81f8b001117d83423ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ config, lib, pkgs, ... }:

{
	options.tools.librewolf = {
		enable = lib.mkEnableOption "Enables librewolf.";
	};

	config = lib.mkIf config.tools.librewolf.enable {
		programs.librewolf = {
			enable = true;
			package = pkgs.librewolf.override {
				nativeMessagingHosts = [
					pkgs.tridactyl-native
				];
			};
			profiles."arpit" = {
				isDefault = true;

				settings = {
					"extensions.autoDisableScopes" = 0;
					"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
					"sidebar.verticalTabs" = true;
					"sidebar.visibility" = "always-show";
					"sidebar.verticalTabs.dragToPinPromo.dismissed" = true;
					"layout.css.devPixelsPerPx" = 1.1;
					"layout.css.prefers-color-scheme.content-override" = 0; # Dark
				};
			};
			policies = {
				# BlockAboutConfig = true;
				ExtensionSettings = {
					"uBlock0@raymondhill.net" = {
						default_area = "menupanel";
						install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
						installation_mode = "force_installed";
						private_browsing = true;
					};
					"{9b84b6b4-07c4-4b4b-ba21-394d86f6e9ee}" = {
						install_url = "https://addons.mozilla.org/firefox/downloads/latest/black21/latest.xpi";
						installation_mode = "force_installed";
					};
					"tridactyl.vim@cmcaine.co.uk" = {
						install_url = "https://addons.mozilla.org/firefox/downloads/latest/tridactyl-vim/latest.xpi";
						installation_mode = "force_installed";
					};
					"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
						default_area = "menupanel";
						install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
						installation_mode = "force_installed";
					};
				};
			};
		};
	};
}