Home

dotnix @65c51b14161f6393ec9a819cefb6f02e54a77d9a - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / apps / gui / firefox.nix
- raw
  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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{ pkgs, ... }:
{
  programs.firefox = {
    enable = true;
    profiles.default = {
      search = {
        default = "Kagi";
        privateDefault = "ddg";
        order = [
          "Kagi"
          "ddg"
        ];
        force = true;
        engines = {
          "Kagi" = {
            definedAliases = [ "@k" ];
            urls = [
              {
                template = "https://kagi.com/search";
                params = [
                  {
                    name = "q";
                    value = "{searchTerms}";
                  }
                ];
              }
            ];
          };
          "ddg" = {
            definedAliases = [ "@d" ];
            urls = [
              {
                template = "https://duckduckgo.com/";
                params = [
                  {
                    name = "q";
                    value = "{searchTerms}";
                  }
                ];
              }
            ];
          };
        };
      };
      extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
        bitwarden
        clearurls
        mailvelope
        multi-account-containers
        refined-github
        ublock-origin
      ];
      settings = {
        "app.update.auto" = false;
        "signon.rememberSignons" = false;
        "browser.formfill.enable" = false;
        "browser.tabs.firefox-view" = false;
        "browser.aboutConfig.showWarning" = false;
        "browser.bookmarks.addedImportButton" = false;
        "extensions.pocket.enabled" = false;
        "browser.newtabpage.activity-stream.feeds.section.topstories" = false;
        "browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
        "browser.newtabpage.pinned" = builtins.toJSON [
          {
            url = "https://github.com/";
            label = "github";
          }
          {
            url = "https://git.jolheiser.com";
            label = "ugit";
          }
        ];
        # tailscale apps
        "browser.fixup.domainwhitelist.go" = true;
        "browser.fixup.domainwhitelist.git" = true;
        "browser.fixup.domainwhitelist.paste" = true;
        "browser.fixup.domainwhitelist.radarr" = true;
        "browser.fixup.domainwhitelist.sonarr" = true;
        "browser.fixup.domainwhitelist.jellyfin" = true;
        "browser.fixup.domainwhitelist.files" = true;
        "browser.fixup.domainwhitelist.pubserve" = true;
        "browser.fixup.domainwhitelist.privserve" = true;
      };
      bookmarks = {
        force = true;
        settings = [
          {
            name = "Toolbar";
            toolbar = true;
            bookmarks = [
              {
                name = "Gitea";
                bookmarks = [
                  {
                    name = "jojodev";
                    tags = [ "gitea" ];
                    keyword = "jojodev";
                    url = "https://git.jojodev.com";
                  }
                  {
                    name = "gist";
                    tags = [
                      "gitea"
                      "gist"
                    ];
                    keyword = "gist";
                    url = "https://gist.jojodev.com";
                  }
                  {
                    name = "gitea";
                    tags = [ "gitea" ];
                    keyword = "gitea";
                    url = "https://gitea.com";
                  }
                ];
              }
              {
                name = "Tailnet";
                bookmarks = [
                  {
                    name = "golink";
                    tags = [ "tailscale" ];
                    keyword = "go";
                    url = "http://go";
                  }
                  {
                    name = "tclip";
                    tags = [ "tailscale" ];
                    keyword = "paste";
                    url = "http://paste";
                  }
                  {
                    name = "ugit";
                    tags = [
                      "tailscale"
                      "git"
                    ];
                    keyword = "git";
                    url = "https://git";
                  }
                  {
                    name = "cfg";
                    tags = [
                      "cfg"
                      "tailscale"
                    ];
                    keyword = "cfg";
                    url = "https://cfg";
                  }
                  {
                    name = "media";
                    bookmarks = [
                      {
                        name = "jellyfin";
                        tags = [
                          "jellyfin"
                          "tailscale"
                        ];
                        keyword = "jellyfin";
                        url = "http://jellyfin";
                      }
                      {
                        name = "sonarr";
                        tags = [
                          "sonarr"
                          "tailscale"
                          "shows"
                        ];
                        keyword = "sonarr";
                        url = "http://sonarr";
                      }
                      {
                        name = "radarr";
                        tags = [
                          "radarr"
                          "tailscale"
                          "movies"
                        ];
                        keyword = "radarr";
                        url = "http://radarr";
                      }
                      {
                        name = "bazarr";
                        tags = [
                          "bazarr"
                          "tailscale"
                          "translations"
                        ];
                        keyword = "bazarr";
                        url = "http://bazarr";
                      }
                      {
                        name = "prowlarr";
                        tags = [
                          "prowlarr"
                          "tailscale"
                          "indexers"
                        ];
                        keyword = "prowlarr";
                        url = "http://prowlarr";
                      }
                    ];
                  }
                  {
                    name = "Files";
                    bookmarks = [
                      {
                        name = "files";
                        tags = [
                          "files"
                          "miniserve"
                        ];
                        keyword = "files";
                        url = "http://files";
                      }
                      {
                        name = "privserve";
                        tags = [
                          "privserve"
                          "miniserve"
                        ];
                        keyword = "privserve";
                        url = "http://privserve";
                      }
                      {
                        name = "pubserve";
                        tags = [
                          "pubserve"
                          "miniserve"
                        ];
                        keyword = "pubserve";
                        url = "http://pubserve";
                      }
                    ];
                  }
                ];
              }
              {
                name = "ugit";
                tags = [
                  "git"
                  "ugit"
                ];
                keyword = "ugit";
                url = "https://git.jolheiser.com";
              }
              {
                name = "git-pr";
                tags = [
                  "git"
                  "pr"
                ];
                keyword = "git-pr";
                url = "https://pr.jolheiser.com";
              }

              {
                name = "todo";
                tags = [
                  "vikunja"
                  "todo"
                ];
                keyword = "todo";
                url = "https://todo.jolheiser.com";
              }
            ];
          }
          # Not in the toolbar, but still usable via keyword/searching
          {
            name = "Go Playground";
            tags = [ "golang" ];
            keyword = "play";
            url = "https://go.dev/play/";
          }
        ];
      };
    };
  };
}