{ 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; }; }; }