From 367b0c114f38d5c332f5ee971ad13dd69e302dec Mon Sep 17 00:00:00 2001 From: tilpner Date: Mon, 15 Jun 2020 09:53:06 +0200 Subject: WIP towards module based configuration --- profiles/disablePocket.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 profiles/disablePocket.nix (limited to 'profiles/disablePocket.nix') diff --git a/profiles/disablePocket.nix b/profiles/disablePocket.nix new file mode 100644 index 0000000..8014c6e --- /dev/null +++ b/profiles/disablePocket.nix @@ -0,0 +1,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; + }; + }; +} -- cgit v1.2.3