summaryrefslogtreecommitdiff
path: root/users/seth/programs/firefox/default.nix
blob: e2e3165d1257b5caa03973e75a40bf79fc925592 (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
{
  config,
  inputs',
  ...
}: {
  imports = [
    ./arkenfox.nix
  ];

  home.sessionVariables = {
    MOZ_ENABLE_WAYLAND = "1";
  };

  programs.firefox = {
    inherit (config.desktop) enable;
    profiles.arkenfox = {
      extensions = with inputs'.firefox-addons.packages; [
        bitwarden
        floccus
        private-relay
        ublock-origin
      ];

      isDefault = true;

      settings = {
        # disable firefox accounts & pocket
        "extensions.pocket.enabled" = false;
        "identity.fxaccounts.enabled" = false;

        "gfx.webrender.all" = true;
        "fission.autostart" = true;

        # hw accel
        "media.ffmpeg.vaapi.enabled" = true;

        # widevine drm
        "media.gmp-widevinecdm.enabled" = true;
      };
    };
  };
}