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/trackingprotection.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 profiles/trackingprotection.nix (limited to 'profiles/trackingprotection.nix') diff --git a/profiles/trackingprotection.nix b/profiles/trackingprotection.nix new file mode 100644 index 0000000..f729df2 --- /dev/null +++ b/profiles/trackingprotection.nix @@ -0,0 +1,7 @@ +{ config, lib, ... }: { + options.trackingProtection.disableAll = + lib.mkEnableOption "Disable all inbuilt tracking protection"; + + config.preferences.browser.contentblocking.enabled = + lib.mkIf config.trackingProtection.disableAll false; +} -- cgit v1.2.3