aboutsummaryrefslogtreecommitdiff
path: root/modules/firefox.home/policies.nix
blob: cacc70d9d5faf95e8967dc0e813c50ebed716b80 (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
# https://mozilla.github.io/policy-templates
{ config }: {
  policies = {
    ManagedBookmarks = [
      { toplevel_name = "Managed bookmarks"; }
      { name = "Daily Dev"; url = "https://app.daily.dev"; }
      # { name = "Shtuff"; children = [] }
    ];
    DisplayBookmarksToolbar = "never";
    NoDefaultBookmarks = true;

    DefaultDownloadDirectory = "${config.home.homeDirectory}/Downloads/firefox";
    DisableAccounts = true;
    DisableAppUpdate = true;
    DisableFeedbackCommands = true;
    DisableFirefoxStudies = true;
    DisablePocket = true;
    DisableProfileImport = true;
    DisableSystemAddonUpdate = true;
    DisableTelemetry = true;
    DontCheckDefaultBrowser = true;
    Homepage = { StartPage = "previous-session"; };
    NewTabPage = false;
    OfferToSaveLogins = false;
    OverrideFirstRunPage = "";
    PasswordManagerEnabled = false;
    DisableSetDesktopBackground = true;
    UserMessaging = {
      ExtensionRecommendations = false;
      SkipOnboarding = true;
    };
    ShowHomeButton = false;

    SearchEngines = {
      Default = "DuckDuckGo lite";
      SearchSuggestEnabled = false;
      Remove = [ "Google" "Bing" "Amazon.com" "eBay" "Wikipedia" ];
      PreventInstalls = false;
      Add = [
        {
          Name = "DuckDuckGo lite";
          URLTemplate = "https://duckduckgo.com/lite/?q={searchTerms}";
          Alias = "ddg";
        }
        {
          Name = "DuckDuckGo regular";
          URLTemplate = "https://duckduckgo.com/?q={searchTerms}";
          Alias = "ddgr";
        }
        {
          Name = "Google Sucks";
          URLTemplate = "https://google.com/?q={searchTerms}";
          Alias = "google";
        }
      ];
    };

    Extensions = {
      Uninstall = [
        "google@search.mozilla.org"
        "bing@search.mozilla.org"
        "amazondotcom@search.mozilla.org"
        "ebay@search.mozilla.org"
        "wikipedia@search.mozilla.org"
      ];
    };
    ExtensionSettings = {
      "google@search.mozilla.org".installation_mode = "blocked";
      "bing@search.mozilla.org".installation_mode = "blocked";
      "amazondotcom@search.mozilla.org".installation_mode = "blocked";
      "ebay@search.mozilla.org".installation_mode = "blocked";
      "wikipedia@search.mozilla.org".installation_mode = "blocked";
    };
  };
}