]> Git — Sourcephile - julm/julm-nix.git/blob - homes/softwares/firefox.nix
patate: fix install
[julm/julm-nix.git] / homes / softwares / firefox.nix
1 { config, pkgs, lib, ... }:
2 let
3 settings = {
4 "browser.bookmarks.showMobileBookmarks" = true;
5 "browser.search.isUS" = false;
6 "browser.search.region" = "FR";
7 "browser.startup.homepage" = "https://code.sourcephile.fr";
8 "distribution.searchplugins.defaultLocale" = "fr-FR";
9 "general.useragent.locale" = "fr-FR";
10 "security.identityblock.show_extended_validation" = true;
11 "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
12 };
13 in
14 {
15 programs.firefox = {
16 /*
17 extensions =
18 with pkgs.nur.repos.rycee.firefox-addons; [
19 https-everywhere
20 privacy-badger
21 ];
22 */
23 package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
24 /*
25 nixExtensions = [
26 (pkgs.fetchFirefoxAddon {
27 name = "ublock";
28 url = "https://addons.mozilla.org/firefox/downloads/file/3679754/ublock_origin-latest-an+fx.xpi";
29 sha256 = "0000000000000000000000000000000000000000000000000000";
30 })
31 (pkgs.fetchFirefoxAddon {
32 name = "decentraleyes";
33 url = "https://addons.mozilla.org/firefox/downloads/file/1671300/decentraleyes-latest-an+fx.xpi";
34 sha256 = "0000000000000000000000000000000000000000000000000000";
35 })
36 ];
37 */
38
39 /* about:policies#documentation */
40 extraPolicies = {
41 CaptivePortal = false;
42 DisableFirefoxStudies = true;
43 DisablePocket = true;
44 DisableTelemetry = true;
45 DisableFirefoxAccounts = true;
46 FirefoxHome = {
47 Pocket = false;
48 Snippets = false;
49 };
50 UserMessaging = {
51 ExtensionRecommendations = false;
52 SkipOnboarding = true;
53 };
54 };
55 };
56 };
57 }