aboutsummaryrefslogtreecommitdiff
path: root/profiles/disablePocket.nix
blob: 8014c6eadcb93aee484883fbdcd79a1cca6f56e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }: with lib; {
  options.features.disablePocket = mkOption {
    type = types.bool;
    default = false;
    description = ''
      Pocket allows saving sites to an external services.
      For some reason, it has been integrated into Firefox directly,
      instead of being offered as an extension.
    '';
  };

  config = mkIf config.features.disablePocket {
    policies = {
      DisablePocket = true;
    };

    preferences = {
      extensions.pocket.enabled = false;
    };
  };
}