about summary refs log tree commit diff stats
path: root/modules/by-name/fi/firefox/profile.nix
blob: 195c20752eeec16e25d7506d607df207f17925ac (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
  config,
  pkgs,
}: preConfig: ({
    userChrome = ./userChrome.css;

    bookmarks = {
      force = true;
      settings = [];
    };

    search = {
      default = "brave-search";
      privateDefault = "brave-search";
      force = true;
      engines = import ./search_engines {inherit pkgs;};

      order = [
        # DEFAULT
        "brave-search"

        # NIX
        "nix-packages"
        "nix-options"
        "nixpkgs-issues"
        "homemanager-options"
        "nixos-wiki"
        "nixpkgs-pull-request-tracker"

        # RUST
        "rust-std"
        "rust-tokio"

        # OTHER
        "google-scholar"
        "wikipedia"
        "arch-wiki"
      ];
    };

    settings = {
      "browser.download.dir" = "${config.home-manager.users.soispha.xdg.userDirs.download}";
      # "browser.download.useDownloadDir" = true;
      # "browser.download.folderList" = 2;

      # QoL
      "general.autoScroll" = false;
      "browser.tabs.insertAfterCurrent" = true;
      "browser.tabs.loadInBackground" = true;
      "browser.ctrlTab.recentlyUsedOrder" = false;
      "browser.search.widget.inNavBar" = true;
      "findbar.highlightAll" = true;

      "devtools.toolbox.host" = "right";
      "devtools.toolsidebar-width.inspector" = 700;

      # Keep translations useful
      "browser.translations.automaticallyPopup" = true;
      "browser.translations.neverTranslateLanguages" = "de";

      # Improve Tab UI
      "browser.tabs.inTitlebar" = 1;
      "browser.toolbars.bookmarks.visibility" = "never";
      "browser.places.importBookmarksHTML" = true;

      # Theme
      "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
      "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";

      # disable updates (pretty pointless with nix)
      "extensions.update.autoUpdateDefault" = false;
      "extensions.update.enabled" = false;
      "app.update.channel" = "default";
      "browser.shell.checkDefaultBrowser" = false;

      # Allow my custom css
      "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
    };

    arkenfox = {
      enable = true;
      "0000".enable = true;
      "0100" = {
        enable = true;
        "0102"."browser.startup.page".value = 3;
        "0103"."browser.startup.homepage".value = "file:///home/dt/home.html";
        "0104"."browser.newtabpage.enabled".value = true;
      };
      "0200" = {
        enable = true;
      };
      "0300" = {
        enable = true;
      };
      "0400" = {
        enable = false;
      };
      "0600" = {
        enable = true;
      };
      "0700" = {
        enable = true;
        "0710"."network.trr.mode" = {
          enable = true;
          value = 3;
        };
      };
      "0800" = {
        enable = true;
      };
      "0900" = {
        enable = true;
      };
      "1000" = {
        enable = true;
        "1001"."browser.cache.disk.enable".value = true;
        "1003"."browser.sessionstore.privacy_level".value = 0;
      };
      "1200" = {
        enable = true;
        "1241"."security.mixed_content.block_display_content".enable = true;
      };
      "1600" = {
        enable = true;
      };
      "1700" = {
        enable = true;
      };
      "2000" = {
        enable = true;
      };
      "2400" = {
        enable = true;
      };
      "2600" = {
        enable = true;
        "2603" = {
          "browser.download.start_downloads_in_tmp_dir".value = false;
          "browser.helperApps.deleteTempFileOnExit".value = false;
        };
        "2615"."permissions.default.shortcuts" = {
          value = 2;
          enable = true;
        };
      };
      "2700" = {
        enable = true;
      };
      "2800" = {
        enable = false;
        "2810"."privacy.sanitize.sanitizeOnShutdown".value = false;
      };
      "4000" = {
        enable = true;
      };
      "4500" = {
        enable = true;
      };
      "5000" = {
        enable = true;
        "5003"."signon.rememberSignons" = {
          enable = true;
          value = false;
        };
      };
      "6000" = {
        enable = true;
      };
      "7000" = {
        enable = true;
      };
      "8000" = {
        enable = true;
      };
      "9000" = {
        enable = true;
      };
    };
  }
  // preConfig)