Home

dotnix @dc9244482fd1c34f9b69333dad80e64ca694fd73 - 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
{pkgs, ...}: {
  programs.firefox = {
    enable = true;
    profiles.default = {
      search = {
        default = "Kagi";
        privateDefault = "DuckDuckGo";
        order = ["Kagi" "DuckDuckGo"];
        force = true;
        engines = {
          "Kagi" = {
            definedAliases = ["@k"];
            urls = [
              {
                template = "https://kagi.com/search";
                params = [
                  {
                    name = "q";
                    value = "{searchTerms}";
                  }
                ];
              }
            ];
          };
          "DuckDuckGo" = {
            definedAliases = ["@d"];
            urls = [
              {
                template = "https://duckduckgo.com/";
                params = [
                  {
                    name = "q";
                    value = "{searchTerms}";
                  }
                ];
              }
            ];
          };
        };
      };
      extensions = 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/";}
          {url = "https://git.jojodev.com/";}
          {url = "https://git.jolheiser.com";}
        ];
        "browser.fixup.domainwhitelist.go" = true; # golink
      };
      bookmarks = [
        {
          name = "Toolbar";
          toolbar = true;
          bookmarks = [
            {
              name = "Gitea";
              bookmarks = [
                {
                  name = "github";
                  tags = ["gitea"];
                  keyword = "go-gitea";
                  url = "https://github.com/go-gitea/gitea";
                }
                {
                  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 = "try";
                  tags = ["gitea"];
                  keyword = "try";
                  url = "https://try.gitea.io";
                }
              ];
            }
            {
              name = "Tailnet";
              bookmarks = [
                {
                  name = "golink";
                  tags = ["tailscale"];
                  keyword = "go";
                  url = "http://go";
                }
                {
                  name = "jellyfin";
                  tags = ["jellyfin"];
                  keyword = "jellyfin";
                  url = "http://sencha:8096";
                }
              ];
            }
            {
              name = "ugit";
              tags = ["git" "ugit"];
              keyword = "ugit";
              url = "https://git.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/";
        }
      ];
    };
  };
}