aboutsummaryrefslogtreecommitdiff
path: root/profiles/forgetActivity.nix
diff options
context:
space:
mode:
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;
+ };
};
}