summaryrefslogtreecommitdiff
path: root/modules/home/browsers/zen.nix
blob: 9b2c24d628e910f22a6cf2192f5049958a272cd4 (plain)
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
{ self, inputs, ...}: {

  flake.homeModules.zen-browser = {pkgs, lib, ...}: let
      zen = inputs.zen-browser.homeModules.beta;
  in {
    imports = [ zen ];

    programs.zen-browser = {
      enable = true;
      setAsDefaultBrowser = true;

     policies = let
     mkExtensionSettings = builtins.mapAttrs (_: pluginId: {
       install_url = "https://addons.mozilla.org/firefox/downloads/latest/${pluginId}/latest.xpi";
       installation_mode = "force_installed";
     });
     in {
       DisableAppUpdate = true;
       DisableTelemetry = true;
       DisablePocket = true;

       ExtensionSettings = mkExtensionSettings {
	 "uBlock0@raymondhill.net" = "ublock-origin";
       };
      
       Preferences = {
         "toolkit.legacyUserProfileCustomizations.stylesheets".Value = true;
       };
     };
    
     profiles.default = {
       search = {
         force = true;
         default = "ddg";
       };

       spacesForce = true;
       spaces = {
         "Main" = {
           id = "5a9831d4-54f2-42c9-aed5-fb511fa7b3f0";
           position = 1000;
           icon = "◯";
         };
       };
     };
   };
  };
}