aboutsummaryrefslogtreecommitdiff
path: root/profiles/noMedia.nix
blob: 32c960ac49147e2096077ce3a7560760fae77a1e (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
{ ffLib }: {
  meta.description = ''
    This assumes a deployment where video consumption does not occur often.
    It disables DRM and other encrypted media, as well as autoplay.
  '';

  policies = {
    Preferences = ffLib.flattenAttrs {
      media = {
        eme.enabled = false;
        gmp-gmpopenh264 = {
          enabled = false;
          autoupdate = false;
        };
        gmp-widevinecdm.enabled = false;
        peerconnection.enabled = false;

        autoplay = {
          default = 1;
          enabled.user-gestures-needed = true;
          allow-muted = false;
        };
      };
    };
  };
}