aboutsummaryrefslogtreecommitdiff
path: root/profiles/forgetActivity.nix
diff options
context:
space:
mode:
authortilpner2020-06-15 09:53:06 +0200
committertilpner2020-06-15 09:53:06 +0200
commit367b0c114f38d5c332f5ee971ad13dd69e302dec (patch)
treeec0c5ee3e7e1f0a30517599e51bd0c8172635158 /profiles/forgetActivity.nix
parent2992d92e6ce0d7c96ccded0747d8815d8cfed956 (diff)
downloadfirefox-profiles-367b0c114f38d5c332f5ee971ad13dd69e302dec.tar.gz
firefox-profiles-367b0c114f38d5c332f5ee971ad13dd69e302dec.tar.xz
firefox-profiles-367b0c114f38d5c332f5ee971ad13dd69e302dec.zip
WIP towards module based configuration
Diffstat (limited to 'profiles/forgetActivity.nix')
-rw-r--r--profiles/forgetActivity.nix26
1 files changed, 16 insertions, 10 deletions
diff --git a/profiles/forgetActivity.nix b/profiles/forgetActivity.nix
index ba45b0b..85e2093 100644
--- a/profiles/forgetActivity.nix
+++ b/profiles/forgetActivity.nix
@@ -1,14 +1,20 @@
-{ }: {
- meta.description = ''
- Delete all data accumulated during the users browsing session,
- or prevent persistent storage in the first place.
- '';
-
- policies = {
- SanitizeOnShutdown = true;
+{ config, lib, ... }: with lib; {
+ options.dataFrugality.forgetActivity = lib.mkOption {
+ type = types.bool;
+ default = false;
+ description = ''
+ Delete all data accumulated during the users browsing session,
+ or prevent persistent storage in the first place.
+ '';
};
- preferences = {
- browser.cache.disk.enabled = false;
+ config = lib.mkIf config.dataFrugality.forgetActivity {
+ policies = {
+ SanitizeOnShutdown = true;
+ };
+
+ preferences = {
+ browser.cache.disk.enabled = false;
+ };
};
}